Sigma Development
  • Welcome to Sigma Development
  • FiveM Escrow System
  • Resources
    • Sigma HUD
      • Installation
      • Configuration
    • Sigma Fuel
      • Installation
      • Exports
      • Configuration
Powered by GitBook
On this page
  1. Resources
  2. Sigma Fuel

Exports

You probably need to use our exports in your Garage scripts to adjust it for fuel saving in database

If you are getting false as return, something is wrong so you can turn on Config.ServerDebug to check.

--exports.sigmafuel.setfuel(VehNetID,Fuel) (will be enabled soon)
TriggerServerEvent("sigmafuel:SetFuel", NetworkGetNetworkIdFromEntity(vehicle), fuel_level+0.0)

Used for setting vehicle fuel, you need to send vehicle network id and fuel amount from 0 to 100 based on your needs

--exports.sigmafuel.getfuel(VehNetID) (will be enabled soon)
GetVehicleFuelLevel(vehicle) or Entity(vehicle).state.fuel

Used for getting the amount of fuel in vehicle, you need to send vehicle network id.

PreviousInstallationNextConfiguration

Last updated 4 months ago