Merge pull request #329 from evanillaa/patch-4

cleanup
This commit is contained in:
Kakarot
2021-11-14 13:23:30 -06:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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