mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-03 03:38:53 +00:00
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user