mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Use SetVehicleFuelLevel Native
Use SetVehicleFuelLevel on QBCore.Functions.SpawnVehicle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user