mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 22:06:02 +01:00
Update client.lua
This commit is contained in:
@@ -66,15 +66,15 @@ started = false
|
|||||||
|
|
||||||
function start(switch)
|
function start(switch)
|
||||||
TriggerServerEvent("ND:GetCharacters")
|
TriggerServerEvent("ND:GetCharacters")
|
||||||
|
if not started then
|
||||||
|
TriggerServerEvent("ND_CharacterSelection:checkPerms")
|
||||||
|
started = true
|
||||||
|
end
|
||||||
if switch then
|
if switch then
|
||||||
local ped = PlayerPedId()
|
local ped = PlayerPedId()
|
||||||
SwitchOutPlayer(ped, 0, 1)
|
SwitchOutPlayer(ped, 0, 1)
|
||||||
FreezeEntityPosition(ped, true)
|
FreezeEntityPosition(ped, true)
|
||||||
SetEntityVisible(ped, false, 0)
|
SetEntityVisible(ped, false, 0)
|
||||||
if not started then
|
|
||||||
TriggerServerEvent("ND_CharacterSelection:checkPerms")
|
|
||||||
started = true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
if config.characterSelectionAopDisplay then
|
if config.characterSelectionAopDisplay then
|
||||||
SendNUIMessage({
|
SendNUIMessage({
|
||||||
|
|||||||
Reference in New Issue
Block a user