mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
Departments duplication patch
This commit is contained in:
@@ -62,14 +62,19 @@ function SetDisplay(bool, typeName, bg, characters)
|
||||
end
|
||||
end
|
||||
|
||||
started = false
|
||||
|
||||
function start(switch)
|
||||
TriggerServerEvent("ND:GetCharacters")
|
||||
TriggerServerEvent("ND_CharacterSelection:checkPerms")
|
||||
if switch then
|
||||
local ped = PlayerPedId()
|
||||
SwitchOutPlayer(ped, 0, 1)
|
||||
FreezeEntityPosition(ped, true)
|
||||
SetEntityVisible(ped, false, 0)
|
||||
if not started then
|
||||
TriggerServerEvent("ND_CharacterSelection:checkPerms")
|
||||
started = true
|
||||
end
|
||||
end
|
||||
if config.characterSelectionAopDisplay then
|
||||
SendNUIMessage({
|
||||
|
||||
Reference in New Issue
Block a user