Removed Legacyfuel usage

This commit is contained in:
ItsANoBrainer
2022-02-19 12:56:44 -05:00
committed by GitHub
parent 6ed74c6392
commit 66ca5a7bb7
+1 -2
View File
@@ -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)