Jump to content

fuel question


Dimos7

Recommended Posts

Posted

setElementData or tables for fuel amount, setTimer and getVehicleEngineState for reducing fuel when engine is on. getPedOccupiedVehicle for getting player vehicle.

Posted

Hey Dimos7,

You have to use setElementData, to set the vehicle's current fuel level.
You have to use setTimer, and getDistanceBetweenPoints2D, to get the travelled distance, and some multiplies to get the fuel decreasing.

Write a comment if you need further help.
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...