mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Removed Legacyfuel usage
This commit is contained in:
@@ -387,7 +387,7 @@ function QBCore.Functions.SpawnVehicle(model, cb, coords, isnetworked, teleportI
|
||||
SetVehicleNeedsToBeHotwired(veh, false)
|
||||
SetVehRadioStation(veh, 'OFF')
|
||||
SetModelAsNoLongerNeeded(model)
|
||||
exports['LegacyFuel']:SetFuel(veh, 100)
|
||||
|
||||
if teleportInto then TaskWarpPedIntoVehicle(PlayerPedId(), veh, -1) end
|
||||
if cb then
|
||||
cb(veh)
|
||||
@@ -599,7 +599,6 @@ function QBCore.Functions.SetVehicleProperties(vehicle, props)
|
||||
end
|
||||
if props.fuelLevel then
|
||||
SetVehicleFuelLevel(vehicle, props.fuelLevel + 0.0)
|
||||
exports['LegacyFuel']:SetFuel(veh, props.fuelLevel + 0.0)
|
||||
end
|
||||
if props.oilLevel then
|
||||
SetVehicleOilLevel(vehicle, props.oilLevel)
|
||||
|
||||
Reference in New Issue
Block a user