Update oxyruns.lua

Possible set up for ox fuel? If you need to make changes thats fine. Haven't tested this fully.
This commit is contained in:
Tater1987 authored and GitHub committed 2025-08-12 23:16:38 -05:00
1 parent ef328ac90c
commit 7cc5485864
1 file changed
+6 -1
+6 -1
View File
@@ -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