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)