Updated 2.1.0

Updated everything to new format, N1K0 is about to work on some more stuff.
This commit is contained in:
Andyyy7666
2022-07-16 04:46:27 +02:00
parent e25da65776
commit 96f89d60ff
37 changed files with 924 additions and 854 deletions

View File

@@ -2,6 +2,7 @@ local display = false
local nearJailingUi = false
local jailTime = 0
local ped
NDCore = exports["ND_Core"]:GetCoreObject()
function SetDisplay(bool)
display = bool
@@ -40,9 +41,9 @@ function drawText3D(coords, text)
end
function hasAccess()
local selectedDepartment = exports["ND_Core"]:getCharacterInfo().department
local job = NDCore.functions:getSelectedCharacter().job
for _, department in pairs(config.accessDepartments) do
if department == selectedDepartment then
if department == job then
return true
end
end