Fixes #114
This commit is contained in:
Corey McCown
2018-08-14 19:35:39 -04:00
committed by Anthony
parent bc4426a9b7
commit 36a0c0d0d9
+2
View File
@@ -397,6 +397,7 @@ ESX.Game.SpawnVehicle = function(modelName, coords, heading, cb)
SetNetworkIdCanMigrate(id, true)
SetEntityAsMissionEntity(vehicle, true, false)
SetVehicleHasBeenOwnedByPlayer(vehicle, true)
SetVehicleNeedsToBeHotwired(vehicle, false)
SetModelAsNoLongerNeeded(model)
RequestCollisionAtCoord(coords.x, coords.y, coords.z)
@@ -432,6 +433,7 @@ ESX.Game.SpawnLocalVehicle = function(modelName, coords, heading, cb)
SetEntityAsMissionEntity(vehicle, true, false)
SetVehicleHasBeenOwnedByPlayer(vehicle, true)
SetVehicleNeedsToBeHotwired(vehicle, false)
SetModelAsNoLongerNeeded(model)
RequestCollisionAtCoord(coords.x, coords.y, coords.z)