diff --git a/client/functions.lua b/client/functions.lua index 240a891..4d2b947 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -279,7 +279,7 @@ function QBCore.Functions.SpawnVehicle(model, cb, coords, isnetworked) end RequestModel(model) while not HasModelLoaded(model) do - Citizen.Wait(10) + Wait(10) end local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, isnetworked, false) local netid = NetworkGetNetworkIdFromEntity(veh) diff --git a/server/player.lua b/server/player.lua index 11e8621..005114d 100644 --- a/server/player.lua +++ b/server/player.lua @@ -139,7 +139,7 @@ function QBCore.Player.Logout(source) local src = source TriggerClientEvent('QBCore:Client:OnPlayerUnload', src) TriggerClientEvent('QBCore:Player:UpdatePlayerData', src) - Citizen.Wait(200) + Wait(200) QBCore.Players[src] = nil end