Loading...

Fuel Script V Mod 0.8

Download
Sakis25
Fuel Script V 0.8 by Sakis25
The first fuel mod for GTA V!

Features:
  • Fuel bar above the minimap
  • Engine stops if you run out of fuel
  • To refill fuel stop the car near a petrol station and sound the horn
  • You can also refill your car using the jerry can (hold L near vehicle)
  • Car fuel is stored for the last 10 vehicles
  • When you run low on gas the fuel bar turns red
  • Blips with petrol station locations on map
  • Map with petrol station locations included in archive

What's New in 0.8:
- New fuel bar design and colors
- Fuel consumption is now working only if you are in driver's seat
- If you run out of fuel a text is displayed above the fuel bar
- Bug fixes

Requirements:


To Do:
- Add animations

Special Thanks:
- haws1290
- Daxwolf
- faztsquirrel
- headscript
- 80T

Installation Instructions:
  • Make sure you have the above requirements first
  • Extract "FuelScriptV 0.8.zip" in the GTA 5 Folder
  • Make sure "FuelScriptV.lua" is in the "scripts\addins\" folder
  • Enjoy!



Additional Notes:
- This mod works only with the default 3 characters. It may not show up if you are using a custom ped/character.
- To place the fuel bar exactly above the minimap set the Safe Zone to 90-95%.
View topic on GTAForums »
First Uploaded: May 08, 2015
Last Updated: June 11, 2015
Last Downloaded: 2 minutes ago
130,151

Sponsored Link

377 Comments

  • Ca59d0 gta f

    @Narobic All right man, it's not that hard, actually. Just open the 'FuelScriptV.lua' file in Notepad. Find the '-- refuel key (for jerry can)' line (without quotes) and add the following line right after it 'local startfuelKey = Keys.G'. You must understand that 'G' can be replaced to any key you want 'cause this is your activation key. Well, the next step is to find this text 'PLAYER.IS_PLAYER_PRESSING_HORN (player)' and replace it with 'get_key_pressed(startfuelKey)'.
    That's all buddy. Enjoy. :)

    p.s. hello to California. I've been to LA two times as a tourist. :)

    January 29, 2017
  • 4cda30 profile picture [3]   copy

    @Slash_Alex Thanks so much! Really appreciate the help. LA's a nice place to visit, not the best place to live LoL. Let's just say that the crimes in GTAV aren't even close to how bad it can get here

    January 29, 2017
  • 4cda30 profile picture [3]   copy

    So since you can't set the price under 1, is there a way to change the price-to-fuel ratio to be more realistic? So like $2 for every gallon (roughly 4 liters)

    January 29, 2017
  • Ca59d0 gta f

    @Narobic You again. :) Listen, there is one way that could probably resolve this problem.
    You can speed up or slow down refueling. Faster you gas your car less money you spend.
    There are two these lines 'value.fuel = value.fuel + 0.0005' in the file. They are responsible for jerry can refueling.
    And two other lines like 'cars[1].fuel = cars[1].fuel + 0.001' and 'cars[1].fuel = cars[1].fuel + 0.002'. The first one for cars and the second one for bykes. So, higher the number - faster refueling.
    Try to play with these figures. At least that's all i can help.

    January 29, 2017
  • Default

    ขอบคุณมาก

    February 16, 2017
  • 8f91cb ne6bqje4vnyca8 2 b

    @Slash_Alex hi! You're tips have been helpful and I have modified this mod accordingly. However, is there a way you could prevent cash from being deducted completely (atm it's removing $1 from my account for every ???) I've had a look myself (and I have no idea what I'm looking at) but I'm not sure what I could change to make this happen without breaking the script. Any ideas?

    It may defeat the purpose, however, I'm currently running a zombie mod and I'd at least like to keep the immersion in tact. Who pays for fuel in an apocalypse anyway? We take, we don't bother.

    February 21, 2017
  • 8f91cb ne6bqje4vnyca8 2 b

    @Slash_Alex nevermind, I worked it out. However, now I need to work out how prevent the cash popping up in the top right hand corner when refueling and also how to toggle the refuel on and off, any ideas?

    February 21, 2017
  • 8f91cb ne6bqje4vnyca8 2 b

    also, is there any possibility of randomizing the amount of fuel that's available in cars?

    February 21, 2017
  • Ca59d0 gta f

    @fredofrog Yeah, man, it's all possible. Actually i did it. I can stop refueling by pressing the 'S' key and i made different amount of fuel and different fuel consumption for every TYPE of vehicles. Not for different car models (it would be too tricky and boring), but planes, boats, bykes and cars have different fuel consumption.
    If you want to prevent cash popping up in the corner while refueling just find this line 'UI.DISPLAY_CASH(true)' and replace 'true' with 'false'.
    And yes, it's possible to randomize the amount of fuel in cars (i did it). Just find this line 'value = {veh, fuel=math.random' and change first two figures. The first number is a lowest amount of fuel and the second one is a highest (AFAIR 12 is the highest).

    Actually i have reprogrammed this mod a lot and it would be too labor intensive for me to put all the changes i've done here. You can give me your e-mail, if you want, and i will sent my .lua file to you.
    p.s. I think it's even possible to make different fuel consumption for every vehicle model in the game, but i don't know how to do that and don't want to do that.

    February 21, 2017
  • 8f91cb ne6bqje4vnyca8 2 b

    @Slash_Alex thank you!!! It's funny, I tried to change the line below 'UI.DISPLAY_CASH(true)' to false trying to get that to work... However, It's now so obvious that was the line to change *face palm*.

    Also because I'm new here, I'm having trouble finding the pm tab to message you my email privately... :(

    February 23, 2017
  • Ca59d0 gta f

    @fredofrog It's not that hard actually to send me a PM. Pay attention of a green bar at the top of the site. There, on the right, between your name and a bell symbol you can see a dialogue symbol (like in comic books). Press it. The next step is to find on the left, on the same green bar a human bust symbol. This is the rightmost symbol from the left. It's called 'Users'. Press it and find me there. Just type my name in the search box. After you found me, click my name and you will see a huge green circle with three vertical dots on the right. Press it and choose the first line: 'start new chat with'. Here we go. It could be simpler, but it's not that hard anyway.

    February 24, 2017
  • 8f91cb ne6bqje4vnyca8 2 b
    February 24, 2017
  • Acd8f6 autumn queen by nairafee d3f0pzd

    Boats and planes?

    February 28, 2017
  • Ca59d0 gta f

    @HECTOR1911 Actually this mod is dead and i had to reprogram this lua script myself to add the functionality you're talking about. That author himself won't do anything about this mod anymore.

    March 05, 2017
  • Acd8f6 autumn queen by nairafee d3f0pzd

    @Slash_Alex Ok i understand , thanks! :)

    March 06, 2017
  • Gtao08

    ummm..... why after im install this mod this mod work but there is some problem..... the fuel bar is appear and dissapear and always like that can somebody figure it out how to fix this problem?

    8 days ago
  • Gtao40

    my resolution is 800x600, how to change the mod resolution to 800x600?

    8 days ago
  • Default

    my fill buttons not working please help every think install correctly

    2 days ago
  • Default

    i can fill car with jerry can but not at the pump can we change the horn to a letter in the settings

    2 days ago
  • Default

    make it show for ped also but anyway i love your mods

    1 day ago
Join the conversation! Log In or register for an account to be able to comment.