forked from Simnation/Main
47 lines
1.4 KiB
Lua
47 lines
1.4 KiB
Lua
![]() |
EXTERNAL_EVENTS_NAMES = {
|
||
|
["esx:getSharedObject"] = nil, -- This is nil because it will be found automatically, change it to your one ONLY in the case it can't be found
|
||
|
}
|
||
|
|
||
|
INTERACTION_POINTS_REFRESH = 1000
|
||
|
|
||
|
--[[
|
||
|
You can edit this function if you want to add second jobs or anything like that (editing this function is down to you)
|
||
|
If you edit this, you WILL have also to edit the function in sv_integrations.lua file
|
||
|
]]
|
||
|
function isAllowedForJobs(allowedJobs)
|
||
|
if(not allowedJobs) then return true end
|
||
|
|
||
|
local playerJob = Framework.getPlayerJob()
|
||
|
|
||
|
if(allowedJobs[playerJob] == true) then
|
||
|
return true
|
||
|
elseif(allowedJobs[playerJob]) then
|
||
|
local playerJobGrade = tostring( Framework.getPlayerJobGrade() )
|
||
|
|
||
|
return allowedJobs[playerJob] and allowedJobs[playerJob][playerJobGrade]
|
||
|
else
|
||
|
return false
|
||
|
end
|
||
|
end
|
||
|
|
||
|
-- Key to interact (for example with plants). Default is E (38)
|
||
|
KEY_TO_INTERACT = 38
|
||
|
|
||
|
-- Key to burn the plant. Default is G (47)
|
||
|
KEY_TO_BURN = 47
|
||
|
|
||
|
-- Enable or disable the smoke effect when burning plants
|
||
|
BURN_PLANTS_SMOKE_EFFECT = true
|
||
|
|
||
|
-- How many seconds the blip for police alerts will remain in the map
|
||
|
BLIP_TIME_AFTER_POLICE_ALERT = 120
|
||
|
|
||
|
|
||
|
--[[
|
||
|
Default progressbar color (must be a hex code). Examples:
|
||
|
"#0fffef" - Light blue
|
||
|
"#ff0f0f" - Red
|
||
|
"#0f0fff" - Blue
|
||
|
]]
|
||
|
DEFAULT_PROGRESSBAR_COLOR = "#47ff33"
|