mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Merge pull request #25 from bleachyblue/main
Departments duplication patch
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
author "Andyyy#7666, N1K0#0001"
|
||||
description "ND Character Selection (DOJ Based)"
|
||||
version "2.2.1"
|
||||
version "2.2.2"
|
||||
|
||||
fx_version "cerulean"
|
||||
game "gta5"
|
||||
|
||||
@@ -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