1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[medic]/visn_are/script/configuration/server_config.lua
Nordi98 6eea01b307 2
2025-06-10 20:56:14 +02:00

91 lines
No EOL
4.9 KiB
Lua

--[[
-- Author: Tim Plate
-- Project: Advanced Roleplay Environment
-- Copyright (c) 2022 Tim Plate Solutions
--]]
ServerConfig = {
-- [[ General Settings ]] --
m_itemsNeeded = true, -- Set this 'true', if you want that players need items to perform actions.
m_reviveCommand = true, -- Set this 'true', if you want to enable the integrated revive command. For permissions see s_functions.lua (IsAllowedToUseReviveCommand)
-- [[ Custom ESX Settings ]] --
m_esxSharedObject = {
useExport = false, -- Set this 'true', if you want to use the ESX Shared Object instead of the old event
resourceName = "es_extended", -- Set the resource name of the ESX (needed for export)
eventName = "esx:getSharedObject", -- Event name of the ESX Shared Object.
},
-- [[ Custom QBCore Settings ]] --
m_qbCoreResourceName = "qb-core", -- Set the resource name of the QBCore (needed for export)
m_customInventory = { -- If you use a custom inventory
enabled = false,
inventory_type = "qs-inventory", -- supported: ox_inventory , qs-inventory, mf-inventory, core_inventory
},
-- [[ Feature Settings ]] --
m_ignoreItemsNeededJobs = { }, -- A table of jobs that ignore the that players need items to perform actions.
m_dependUnconsciousTimeOnMedicCount = {
enabled = false, -- Set this to 'true', if you want that the system will depend on the medic count.
jobs = { "ambulance" }, -- A table of jobs that will count to the final count of medics.
overwrites = { -- Keep in order: Lowest to highest!
-- Format: [Medic count as number] = Time in seconds
[0] = 60 * 5, -- 5 Minutes when medicCount >= 0
[2] = ClientConfig.m_respawnConfiguration.m_respawnTime, -- Default time when medicCount >= 2
}
},
m_limitMenuToJobs = { -- Limits the menu to certain jobs.
enabled = false, -- Set this 'true', if you want that the system will limit the menu to certain jobs.
jobs = { "ambulance", "police", "tierarzt" }, -- A table of jobs that are allowed to use the menu.
},
m_triageSystem = {
enabled = true, -- Set this 'true', if you want that the triage system is enabled.
jobRestriction = true, -- Set this 'true', if you want that the triage system is restricted to certain jobs.
jobs = { "ambulance", "police", "tierarzt" }, -- A table of jobs that are allowed to use the triage system.
},
m_stateSaving = { -- This feature will save the state of the players (like injuries, blood pressure) to a file (recommend) or mysql database.
enabled = true, -- Set this to 'true', if you want that the system will save the state of the players.
interval = 20 * 3, -- Set this to the interval in seconds, that the system will save the state of the players.
method = 'oxmysql', -- 'oxmysql', 'mysql-async' or 'file' (recommended)
database = { -- Set this to the database settings, if you use oxmysql.
table = 'players', -- Set this to the table name, where the state will be saved.
column = 'health_state', -- The column in the table, that will be used to save the state of the players.
identifierColumn = 'citizenid' -- The column in the table, that will be used to query the player.
},
file = { -- Set this to the file settings, if you use file.
path = '/database/', -- Set this to the path of the file, where the system will save the state of the players.
type = 'message_pack', -- The type of serialization. message_pack (recommended) or json
}
},
m_discordLogging = { -- This feature will log kill logs to discord.
enabled = true, -- Set this to 'true', if you want that the system will log messages to Discord.
healthBuffer = true, -- Set this to 'true', if you want that the system will also log the healthBuffer on a kill.
webhook = '' -- Set this to the webhook URL of your discord channel.s
},
-- [[ Menu Settings ]] --
m_showNameOfPlayerOnMenuTitle = true, -- Set this to 'true', if you want that the system will show the name of the player on the menu title. Set this to 'false', if you want that the system will not show the name of the player on the menu title.
-- [[ Respawn Settings ]] --
m_respawnConfiguration = {
m_removeMoneyOnDeath = true, -- Set this to 'true', if you want that players lose money on death.
m_removeItemsOnDeath = true, -- Set this to 'true', if you want that players lose items on death.
m_removeWeaponsOnDeath = true, -- Set this to 'true', if you want that players lose weapons on death.
},
m_medicalOperations = {
enabled = true,
actions = { "cpr" },
jobs = { "ambulance" }
},
-- [[ Debug Settings ]] --
m_debugModeEnabled = true, -- Set this to 'true', if you want expanded informations about things that are going on.
m_debugModeModules = { "items" },
}