Setup
Steps to fllow ensure the script works properly
1
Go to Shared/config.lua
Config = {
language = 'en',
framework = "auto-detect", -- Standalone | ESX | QBCORE | auto-detect
jobsAccessAllDoor = "police",
listAccessCommandDoorAdmin = {
"admin",
"mod",
"helper",
"user"
}
}
-----------------
--- Modify for framework or your system Notify
-----------------
Notify = function(message)
if Config.framework == "ESX" then
Framework.ShowNotification(message)
elseif Config.framework == "QBCORE" then
Framework.Functions.Notify(message)
elseif Config.framework == "Standalone" then
--Use your custom notify
end
endIf you are using standalone mode, you will need to adapt the script
1
Go to shared/config.lua
-----------------
--- Modify for framework or your system Notify
-----------------
Notify = function(message)
if Config.framework == "ESX" then
Framework.ShowNotification(message)
elseif Config.framework == "QBCORE" then
Framework.Functions.Notify(message)
elseif Config.framework == "Standalone" then
--Use your custom notify
end
end2
Now go to server/framework/Standalone.lua
function GetIdPlayer_STANDALONE(idPlayer)
return --Data Player
endfunction HasJob_STANDALONE(jobname, grade, player)
--if grade == nil then
-- if jobname == player.job.name then
-- return true
-- else
-- return false
-- end
--end
--if jobname == player.job.name and player.job.grade >= grade then
-- return true
--else
-- return false
--end
endfunction GetHasGroupPlayer(dataPlayer, group)
--if dataPlayer.group == group then
-- return true
--else
-- return false
--end
endLast updated