From e98f79bba3ecebc7b9d67fbfdc4e7019c14349dd Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Wed, 10 Aug 2022 19:35:28 +0200 Subject: [PATCH] Update client.lua --- ND_CharacterSelection/source/client.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ND_CharacterSelection/source/client.lua b/ND_CharacterSelection/source/client.lua index 43051a5..9cb3e7b 100644 --- a/ND_CharacterSelection/source/client.lua +++ b/ND_CharacterSelection/source/client.lua @@ -217,6 +217,7 @@ RegisterNUICallback("tpDoNot", function(data) if next(character.lastLocation) ~= nil then SetEntityCoords(ped, character.lastLocation.x, character.lastLocation.y, character.lastLocation.z, false, false, false, false) end + Citizen.Wait(500) FreezeEntityPosition(ped, true) SwitchInPlayer(ped) Citizen.Wait(500) @@ -239,4 +240,4 @@ RegisterCommand(config.changeCharacterCommand, function() end, false) -- chat suggestions -TriggerEvent("chat:addSuggestion", "/" .. config.changeCharacterCommand, "Switch your framework character.") \ No newline at end of file +TriggerEvent("chat:addSuggestion", "/" .. config.changeCharacterCommand, "Switch your framework character.")