config.lua
Full View
Config = {}
Config.Framework = 'esx' -- Framework type: 'esx' or 'qb-core'.
Config.NotificationSystem = 'ox_lib' -- Options: 'ox_lib', 'tnotify', 'okoknotify', 'print', 'framework'. Determines the notification system to use.
Config.Locale = "en" -- Localization option: choose between 'hu', 'en', 'de', 'fr'.
Config.InteractionType = "3dtext" -- Options: "ox_target" or "qb-target" or "3dtext"
Config.Webhook = "" -- Discord Webhook
Config.Blips = false -- Enable or disable map blips for Obstacles gates. Admin group only. ESX only. Recommended for development.
Config.Debug = false -- Enable debug mode for additional output during development.
Config.GateRemoteItem = "gate_remote" -- The name of the item required for gate remote control.
Config.GateHackItem = "lockpick" -- The name of the item required for hacking gates. GateHackItem + GateRemoteItem is also required.
Config.InstallJob = "mechanic" -- Job required to install gates and gate control stand.
-- Swing Gates
Config.GateControlStand = "gate_control_stand" -- Name of the control stand prop. Only Config.InstallJob
Config.GateProp = { "prop_lrggate_01c_l", "prop_lrggate_01c_r", "prop_lrggate_01_l", "prop_lrggate_01_r" } -- List of swing gate prop names. Scanner.
-- Prop-Based Gates Example Props: prop_sc1_06_gate_l, imp_prop_impex_gate_sm_13, prop_facgate_07b
-- Admin Command: /gatemanager ESX admin group. QBCore admin job. Recommended for development.
Config.InstallGateItem = "install_gate_tool" -- This will open the install menu.
Config.EditGateItem = "edit_gate_tool" -- This opens the edit menu.
-- Gate Hack
Config.Check = {
EnableSkillCheck = true, -- Enable OX_LIB skill checks during hacking attempts.
ProcessTime = 10, -- Time in seconds for the progress bar (used only if EnableSkillCheck is false).
}
-- Skill Check Configuration
Config.SkillCheckDifficulty = {'easy', 'easy', 'easy', 'easy'} -- Difficulty levels for skill checks. Options: 'easy', 'medium', 'hard'.
Config.SkillCheckKeys = {'w', 'a', 's', 'd'} -- Keys required for skill check success.
Config.ControlTime = 90 -- 90 minutes. The time in minutes until a gate remains broken and can be controlled by the player who broke it.
Config.AlarmChance = 50 -- 50% chance to alarm if it deteriorates during a skill check or process round. Alerts the job.
Config.GateHackItemRemoveChance = 25 -- 25% chance of breaking and removing Config.GateHackItem in case of bad hacking
-- Notifications settings
Config.Notifications = {
ox_lib = function(msg, msgType)
lib.notify({
position = 'top',
type = msgType,
description = msg,
duration = 5000
})
end,
tnotify = function(msg, msgType)
exports['t-notify']:Alert({
style = msgType,
message = msg,
duration = 5000
})
end,
okoknotify = function(msg, msgType)
exports['okokNotify']:Alert('Notification', msg, 3000, msgType)
end,
print = function(msg, _)
print(msg)
end,
framework = function(msg, msgType)
if Config.Framework == "qb-core" then
QBCore.Functions.Notify(msg, msgType)
elseif Config.Framework == "esx" then
ESX.ShowNotification(msg)
end
end
}
Last updated