🛠️INSTALLATION
📌 Requirements QB-Core or ESX Framework ox_lib
1. Resource Installation
Download the latest release
Extract to your resources folder
Add
ensure janiel-fuelstations
to your server.cfgConfigure config.lua to your preferences
2.Attention! Correct Export Usage for Your Fuel System
To ensure seamless integration with your existing fuel system, you must use the following export:
exports["janiel-fuelstations"]
Please use the export above instead of other fuel scripts. Using incorrect code may cause your system to malfunction.
SetFuel(vehicle --[[ Vehicle ]], value --[[ Number: (0-100) ]])
GetFuel(vehicle --[[ Vehicle ]]) -- Returns the vehicle's fuel level.
Example usage:
function SpawnVehicle(modelHash)
local vehicle = CreateVehicle(modelHash, coords.x, coords.y, coords.z, true, false)
exports["janiel-fuelstations"]:SetFuel(vehicle, 100)
end
function StoreVehicleInGarage(vehicle)
local plate = GetVehicleNumberPlateText(vehicle)
local fuelLevel = exports["janiel-fuelstations"]:GetFuel(vehicle)
TriggerServerEvent('vehiclesStored', plate, fuelLevel)
end
If you encounter any issues, feel free to contact our support team.
Thank you!
Last updated