From 6d693ff7f32f0dfd8f502451bf64d6ee502609fc Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Mon, 8 Aug 2022 20:58:23 +0200 Subject: [PATCH] Update client.lua --- ND_CharacterSelection/source/client.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ND_CharacterSelection/source/client.lua b/ND_CharacterSelection/source/client.lua index 3d04928..654d848 100644 --- a/ND_CharacterSelection/source/client.lua +++ b/ND_CharacterSelection/source/client.lua @@ -66,15 +66,15 @@ started = false function start(switch) TriggerServerEvent("ND:GetCharacters") + if not started then + TriggerServerEvent("ND_CharacterSelection:checkPerms") + started = true + end 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({