Fuel Script V Mod 0.8
218.347
1.134
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:
- - Script Hook V (latest version)
- - LUA Plugin for Script Hook V (latest version)
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: Venres 8 de Maio de 2015
Last Updated: Xoves 11 de Xuño de 2015
Last Downloaded: 2 minuto
474 Comments
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:
- - Script Hook V (latest version)
- - LUA Plugin for Script Hook V (latest version)
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: Venres 8 de Maio de 2015
Last Updated: Xoves 11 de Xuño de 2015
Last Downloaded: 2 minuto
-
Venres 2 de Marzo de 2018
-
@Slash_Alex
Hi! Since you seem to be knowledgeable about the workings of this mod, I figured I would ask you since the mod author seems a bit MIA atm.The mod works just fine except for the part were it doesn't seem to save the information about my cars fuel tank fullness. I can refuel my car, save, exit, and reload only to find my tank less than half full.
Do you know by chance how to fix this? Thanks. : )
Xoves 8 de Marzo de 2018 -
@LadieWinter Hi! Actually this mod is very simple, and it remembers fuel status for 10 vehicles, and ONLY while you're playing the game. So if you quit the game, or reload your save game all the information about vehicles fuel tank fullness will be cancelled. If that's what you were asking. :)
And i'm not sure there is a fuel mod that can do it. But probably i just don't know something. Try some other mods if you haven't done it yet:
https://www.gta5-mods.com/scripts/smart-fuel-mod-all-in-1
https://www.gta5-mods.com/scripts/advanced-fuel-mod
or this one:
https://www.gta5-mods.com/scripts/i-fuelJust type 'fuel' in the search box and you will find a lot of other mods.
Xoves 8 de Marzo de 2018 -
@Slash_Alex
Ok. Thanks. That's a bummer, but I have lived with it so far so I can live it with further.
I have looked at those mods. I wasn't sure if they actually still worked. Since I know this one works and is simplistic, I decided to play with it for the time being. I might look into those mods again later.Thanks again! : )
Xoves 8 de Marzo de 2018 -
I really like this mod, simple but great, just what I wanted :)
Could you prehaps make an option to choose to set fuel bar go vertical and maybe a possibility to choose your own color? I really like your mod but I really want the option for vertical bar to match my HUD, pls pls make it happen!!
props for good work m8! =)Sábado 17 de Marzo de 2018 -
@Tomo23 The author of this mod won't answer you as he no longer supports it. But there is a way to do what you want, though you'll have to do it yourself. Open the 'FuelScriptV.lua' file. There will be two lines in the end of the file: GRAPHICS.DRAW_RECT(gasx+(cars[1].fuel/2), gasy, cars[1].fuel, gash, 246, 154, 80, 255) and GRAPHICS.DRAW_RECT(gasx+(cars[1].fuel/2), gasy, cars[1].fuel, gash, 220, 20, 20, 255).
These commands draw the fuel bar on the screen. The last four numbers is the colour.
To make the bar vertical you should exchange x and y. For example:
it was
GRAPHICS.DRAW_RECT(gasx+(cars[1].fuel/2), gasy, cars[1].fuel, gash, 246, 154, 80, 255)
and now it is
GRAPHICS.DRAW_RECT(gasx, gasy+(cars[1].fuel/2), gash, cars[1].fuel, 246, 154, 80, 255)There are global variables in the beginning of the file you may also wanna to change, like:
local gasx = 0.015
local gasy = 0.990
local gash = 0.009Decrease "gasy" to 0.500 to place the bar higher, for example.
Decrease "gash" to make it thinner.I didn't try it myself, but it should work.
There are also two "GRAPHICS.DRAW_RECT" lines higher, right under the "function GUI.renderGUI()".
You should change them too.The point is that everything under the "function GUI.renderGUI()" line is related to fuel bars.
Experiment yourself.
This mod is officially dead so only you can make changes if need them.Domingo 18 de Marzo de 2018 -
Thx man for the resond! :) I've tried what you have said and the example you've posted
"GRAPHICS.DRAW_RECT(gasx, gasy+(cars[1].fuel/2), gash, cars[1].fuel, 246, 154, 80, 255)"
works great.
I can understand the color part but the rest I can't seem to get a hang of it, I can't seem to match everything.
Could you prehaps edit the original bar and make everything the same only its all going vertical? (including the bar background and etc). Just like you did in your example but only including everything. I would really appreciate itDomingo 18 de Marzo de 2018 -
Expand to read the full comment
@Tomo23 Replace this snippet of code with mine:
function GUI.renderGUI()
GRAPHICS.DRAW_RECT(gasx, gasy+0.07, 0.009, 0.14, 0, 0, 0, 60)--bar bg 1
GRAPHICS.DRAW_RECT(gasx, gasy+0.07, 0.009, 0.14, 220, 20, 20, 60)--bar bg 2if (cars[1].fuel==0) then
UI.SET_TEXT_FONT(0)
UI.SET_TEXT_PROPORTIONAL(1)
UI.SET_TEXT_SCALE(0.0, 0.32)
UI.SET_TEXT_COLOUR(230, 0, 0, 255)
UI.SET_TEXT_DROP_SHADOW()
UI._SET_TEXT_ENTRY("STRING")
UI._ADD_TEXT_COMPONENT_STRING("OUT OF FUEL")
UI._DRAW_TEXT(gasx+0.028, gasy-0.03)
endif (cars[1].fuel<0.010) then
GRAPHICS.DRAW_RECT(gasx, (gasy+0.14)-(cars[1].fuel/2), gash, cars[1].fuel, 220, 20, 20, 255)
lowFuel=true
else
-- GRAPHICS.DRAW_RECT(gasx+(cars[1].fuel/2), gasy, cars[1].fuel, gash, 156, 181, 42, 255)
GRAPHICS.DRAW_RECT(gasx, (gasy+0.14)-(cars[1].fuel/2), gash, cars[1].fuel, 246, 154, 80, 255)
lowFuel=false
endGRAPHICS.DRAW_RECT(gasx, gasy+0.07, gash, 0.002, 0, 0, 0, 50);
endYou also have to change the value of "local gash =" to 0.005. It's in the beginning of the file.
There are also coords in the beginning of the file where the bar will be placed:
local gasx =
local gasy =Try to change "gasy" to 0.590 for example.
And one more thing, i'm quite sure you will want to change the coords in this line: UI._DRAW_TEXT(gasx+0.028, gasy-0.03). It displays the "Out of fuel" message. Test it your self.p.s. i do not visit this page or any other every day, so if you want that somebody knows that you messaged him you should use this AT sign "@" right before the name in front of the message. In this case the recipient will be alarmed. Look at my message. Capisce?
Martes 20 de Marzo de 2018 -
@Slash_Alex Damn thx man, works great, you the best! :) Wish you could pin it so the others can see it too..
Yeah I know, sorry didn't notice it, my bad. Thanks for the head up tho :)Venres 23 de Marzo de 2018 -
Is it possible for you to make ELS vehicles work for this mods too?
Venres 30 de Marzo de 2018 -
@Slash_Alex Hey man, do you know if there's another line on the file I need to change to raise the price? I changed the line you mentioned but now it just uses all my money. Thanks
Sábado 31 de Marzo de 2018 -
@merendero00 That's the line. There is no other line. How did you change it? I have this line: STATS.STAT_SET_INT(hash, val - 100, true). It takes 100 bucks per litre.
Domingo 1 de Abril de 2018 -
@Slash_Alex I was using 80 but now I changed to 100 and it's working normally. Thanks for your help!
Luns 2 de Abril de 2018 -
@Slash_Alex Any idea how to get the gas bar on the right side of the screen?
Same height just on the right side?Xoves 5 de Abril de 2018 -
@rastakilla "local gasx =" in the beginning of the file. Change the value to something more suitable like 0.911 or more (or less). Test it yourself!
Xoves 5 de Abril de 2018 -
-
Hello. Is it possible to change the rate at which the gas is refilled while at a gas station?
6 días -
@Josh_C Sure thing, there is a way. Find this line 'cars[1].fuel = cars[1].fuel + 0.001' and lessen 0.001 to smth. like 0.0005 or any other
5 días -
-
@AceNiken Find this line: cars[1].fuel = cars[1].fuel - (carspeed/600000) and change 600000 to any number you want. This will affect how fast fuel is consumed.