diff --git a/ND_CharacterSelection/fxmanifest.lua b/ND_CharacterSelection/fxmanifest.lua index 4628979..52080a1 100644 --- a/ND_CharacterSelection/fxmanifest.lua +++ b/ND_CharacterSelection/fxmanifest.lua @@ -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" diff --git a/ND_CharacterSelection/source/client.lua b/ND_CharacterSelection/source/client.lua index 2cbf60d..3d04928 100644 --- a/ND_CharacterSelection/source/client.lua +++ b/ND_CharacterSelection/source/client.lua @@ -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({