Use SetVehicleFuelLevel Native

Use SetVehicleFuelLevel on  QBCore.Functions.SpawnVehicle
This commit is contained in:
ItsANoBrainer
2022-02-19 13:11:26 -05:00
committed by GitHub
parent 66ca5a7bb7
commit cc43734a3c
+1
View File
@@ -386,6 +386,7 @@ function QBCore.Functions.SpawnVehicle(model, cb, coords, isnetworked, teleportI
SetNetworkIdCanMigrate(netid, true)
SetVehicleNeedsToBeHotwired(veh, false)
SetVehRadioStation(veh, 'OFF')
SetVehicleFuelLevel(veh, 100.0)
SetModelAsNoLongerNeeded(model)
if teleportInto then TaskWarpPedIntoVehicle(PlayerPedId(), veh, -1) end