mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-28 17:01:16 +00:00
Fix nil value
This commit is contained in:
@@ -62,9 +62,8 @@ QBCore.Functions.SpawnVehicle = function(model, cb, coords, isnetworked) -- QBCo
|
||||
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, isnetworked, false)
|
||||
local netid = NetworkGetNetworkIdFromEntity(veh)
|
||||
|
||||
SetVehicleHasBeenOwnedByPlayer(vehicle, true)
|
||||
SetNetworkIdCanMigrate(netid, true)
|
||||
--SetEntityAsMissionEntity(veh, true, true)
|
||||
SetVehicleHasBeenOwnedByPlayer(veh, true)
|
||||
SetNetworkIdCanMigrate(netid, true)
|
||||
SetVehicleNeedsToBeHotwired(veh, false)
|
||||
SetVehRadioStation(veh, "OFF")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user