mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Updated 2.1.0
Updated everything to new format, N1K0 is about to work on some more stuff.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
NDCore = exports["ND_Core"]:GetCoreObject()
|
||||
NDCore.functions:versionChecker("ND_Jailing", GetCurrentResourceName(), "https://github.com/Andyyy7666/ND_Framework", "https://raw.githubusercontent.com/Andyyy7666/ND_Framework/main/ND_Jailing/fxmanifest.lua")
|
||||
|
||||
local jailedPlayers = {}
|
||||
|
||||
-- Get player any identifier, available types: steam, license, xbl, ip, discord, live.
|
||||
|
||||
Reference in New Issue
Block a user