Fuel add system
Custom Fuel System Integration
How to add your own fuel system
-- My Custom Fuel System
return {
name = "myfuel", -- unique identifier
resourceName = "myfuel", -- resource name to check (use nil for no check)
GetFuel = function(vehicle)
-- Your code to get fuel level here
local success, result = pcall(function()
return exports['myfuel']:GetFuelLevel(vehicle)
end)
if success and result then
return math.ceil(result) -- return 0-100
end
return nil -- return nil if failed
end
}Available Systems
Configuration
Priority Order (when using "auto")
Notes
Last updated