From 66ca5a7bb71e10ee573df83ee5e5a9973d646cef Mon Sep 17 00:00:00 2001 From: ItsANoBrainer Date: Sat, 19 Feb 2022 12:56:44 -0500 Subject: [PATCH] Removed Legacyfuel usage --- client/functions.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 09a9c1b..305e5c5 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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)