Fuel System -
rootcause - 31.01.2016
Commands
/refuel - Starts/stops refueling your vehicle, needs you to be near a gas pump.
/arefuel - Refuels the vehicle you're in, can be used anywhere. (RCON Only)
/arefuelall - Refuels all vehicles. (RCON Only)
Consumption Rate
This script uses vehicle mass, speed and distance the vehicle travelled since the last consumption. For example a Landstalker going max speed with 500 meters travelled should consume 0.974717 Liters of fuel. You can modify it from line 335.
No-Fuel Vehicles
You can add any vehicle model to the switch/case in Vehicle_IsANoFuelVehicle function and they'll be a no-fuel vehicle which means they won't get affected by this script. Bikes are no-fuel vehicles by default.
Gas Pumps
You can add/modify gas pump coordinates from PumpData array. Default coordinates are taken from GTA SA IPL files so pretty much every gas pump can be used to refuel.
Credits
Emmet_ for
Extended vehicle functions
Vince for
Extended Vehicle Information
[HLF]Southclaw for
Progress Bars v2
Incognito for
Streamer Plugin
Zeex for
zcmd
Notes
You can use the LITRE_PRICE define to change litre price. (Default: 3)
You can use the UPDATE_RATE define to change the consumption time, needs to be in milliseconds. (Default: 1000)
Since there are no gas pumps for boats AFAIK, so you might have to map some and add their coordinates to the PumpData array or you can make boats no-fuel vehicles.
Downloads
Re: Fuel System -
ask187 - 31.01.2016
Nice job.
Re: Fuel System -
ask187 - 31.01.2016
remove job, please
Re: Fuel System - Phar - 31.01.2016
I was thinking the same thing,but i have something better in mind.
Re: Fuel System -
ask187 - 31.01.2016
Quote:
Originally Posted by Phar
I was thinking the same thing,but i have something better in mind.
|
Link?
Re: Fuel System - Phar - 31.01.2016
Quote:
Originally Posted by ask187
Link?
|
No? its for my server why would i give it away?
Re: Fuel System -
ask187 - 31.01.2016
Quote:
Originally Posted by Phar
No? its for my server why would i give it away?
|
Do you have skype?
Re: Fuel System - Phar - 31.01.2016
Quote:
Originally Posted by ask187
Do you have skype?
|
Yeah,why?
Respuesta: Fuel System -
HaRdiiZin - 31.01.2016
Nice script.
Re: Fuel System -
ask187 - 31.01.2016
Quote:
Originally Posted by Phar
Yeah,why?
|
let's be friends?
Re: Fuel System -
Phar - 31.01.2016
Quote:
Originally Posted by ask187
let's be friends?
|
Hmm... Pm me and stop posting on rootcause topic... instead
Re: Fuel System -
ask187 - 31.01.2016
Quote:
Originally Posted by Phar
Hmm... Pm me and stop posting on rootcause topic... instead
|
what?
Re: Fuel System -
Auri - 02.02.2016
Nice script man
Rep +
Re: Fuel System -
Amunra - 02.02.2016
Why Not Using Save Fuel ?
Anyway Good
Re: Fuel System -
Nev - 27.02.2016
Good job
Re: Fuel System -
illuminati2 - 27.02.2016
It's ok, Good Work. Keep improving it.
I won't say it's very good as it could be better.
@ask187 - stop the spam, there's something called Private Message where you can say whatever you want to anyone.
Re: Fuel System -
AndreiWow - 05.10.2016
Why is my pawno crashing when I try to compile it?
Re: Fuel System -
Imbalo - 30.03.2017
Sorry to late reply, but i have problem in this script. I can't press N to start engine why ?
Re: Fuel System -
LittleSpy - 30.03.2017
Nice Script