From 7cc5485864ea51d91dfd25753cabb5bdb5b7b516 Mon Sep 17 00:00:00 2001 From: Tater1987 <149222217+Tater1987@users.noreply.github.com> Date: Tue, 12 Aug 2025 23:16:38 -0500 Subject: [PATCH] Update oxyruns.lua Possible set up for ox fuel? If you need to make changes thats fine. Haven't tested this fully. --- client/oxyruns.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/oxyruns.lua b/client/oxyruns.lua index 47e6b02..062fc55 100644 --- a/client/oxyruns.lua +++ b/client/oxyruns.lua @@ -55,7 +55,11 @@ for k, v in pairs(locations.OxyPayForTruck) do if not paid then return end local oxycar = CreateVehicle("burrito3",v.truckSpawn.x, v.truckSpawn.y, v.truckSpawn.z, v.truckSpawn.w, true, false) - exports[Config.Fuel]:SetFuel(oxycar, 100.0) + if Config.Fuel == "ox_fuel" then + Entity(oxycar).state.fuel = 100.0 + else + exports[Config.Fuel]:SetFuel(oxycar, 100.0) + end TriggerEvent("vehiclekeys:client:SetOwner", GetVehicleNumberPlateText(oxycar)) ps.notify(ps.lang('oxy.keys'), 'success') onMission = true @@ -91,4 +95,5 @@ for k, v in pairs(locations.OxyPayForTruck) do end } }) -end \ No newline at end of file + +end