Dimos7 Posted February 12, 2017 Share Posted February 12, 2017 hello guys i want make a fuel system for vehicle how i do it what functions i need Link to comment
xyzii Posted February 13, 2017 Share Posted February 13, 2017 setElementData or tables for fuel amount, setTimer and getVehicleEngineState for reducing fuel when engine is on. getPedOccupiedVehicle for getting player vehicle. Link to comment
NeXuS™ Posted February 13, 2017 Share Posted February 13, 2017 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now