From cc43734a3c312ed022472dca7d405f3f29bda0f1 Mon Sep 17 00:00:00 2001 From: ItsANoBrainer Date: Sat, 19 Feb 2022 13:11:26 -0500 Subject: [PATCH] Use SetVehicleFuelLevel Native Use SetVehicleFuelLevel on QBCore.Functions.SpawnVehicle --- client/functions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client/functions.lua b/client/functions.lua index 305e5c5..8d15b34 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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