This commit is contained in:
vanillaa
2021-11-14 12:53:16 +02:00
committed by GitHub
parent f1a918e95c
commit 9928ce12ad
+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)