Jump to content

[V|REL/WIP] Fuel Script


Recommended Posts

Fuel Script V 1.0 Mod by Sakis25

updated 17-10-21

 

6b21f8-scrn1.jpg

 

The first fuel mod for GTA V!

 

NEW UPDATE 2021!

IMPORTANT PLEASE READ!
If you where using any previous versions please delete the "FuelScriptV.lua" from the "scripts\addins\" folder. It's incompatible and might cause conflicts.

 

Features:

  • Fuel bar above the minimap (position can be customized)
  • Engine stops if you run out of fuel
  • Working interior fuel gauge
  • Damaging the car's petrol tank affects consumption
  • Blips with petrol stations on map
  • To refill the gas tank stop the car near a petrol station and sound the horn
  • You can also refill your car using the jerry can (hold displayed button near vehicle left side)
  • Animations while refilling with the jerry can
  • Adjustable consumption speed
  • Car fuel is stored for the last 32 vehicles
  • When you run low on gas the fuel bar turns red
  • Controller support

 

Requirements:

 

 

What's New in v1.0:
- Completely rewritten the code from scratch. New version features many new additions mentioned above while keeping the simplicity that made this mod popular.
- Feel free to report any bugs in the comments

Customization:
Edit the FuelScript.ini to adjust the settings to your preferred values.

Installation:
Place FuelScript.dll and FuelScript.ini into your "scripts" folder.

 

Support:

PLEASE REPORT ANY BUGS IF ANY

 

Download:

FuelScriptV 1.0.zip

 

 

Special Thanks:

- haws1290
- Daxwolf
- faztsquirrel
- headscript
- 80T

 

Enjoy!

 

 

Edited by sakis25
New Update v1.0
Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/
Share on other sites

Good idea and good luck!

 

 

http://segmentnext.com/2013/09/18/gta-5-stores-heists-and-robbery-guide-how-to/

Here's a link to an article showing all the robbery locations.

2, 10, 13, 16 & 19 are the gas stations :lol:

 

Thank you for the locations. I will try to add them all in an update.

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067401113
Share on other sites

alteredbeast

Thanks sakis25, I was waiting for that kind of mods. Hope you will find a way to make the first person fuel gauge working (but it sounds hard to do...).

 

As a sugestion, maybe, once you have implemented the gas stations, you can decrease a certain amount of money everytime we refill (if it's to hard to do, just ignore my sugestion).

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067401164
Share on other sites

PatrickJr.

Mmmh, just tested and it doesn't seem to work...

I use the last Lua script from here, and Szabo's Persistance Mod (which also uses lua and still works perfect). Don't know what's the problem...

Well if you've updated to the latest version of GTA:V That will be the problem

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067401417
Share on other sites

LordJustin

There are a lot of gas stations everywhere, like the one on the end of Paleto bay, near the LSCustom. It could be fun if they were available too in your mod.

How can we contribute ? what kind of info do you need about the location? coordinates?
I'll be spotting these while crusing around :)

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067401474
Share on other sites

There are a lot of gas stations everywhere, like the one on the end of Paleto bay, near the LSCustom. It could be fun if they were available too in your mod.

 

How can we contribute ? what kind of info do you need about the location? coordinates?

I'll be spotting these while crusing around :)

I actually sent a link where all the gas station locations are :) But coordinates would be great, I assume!

 

Fix for the mod: Safezone problem where the fuel bar is out of screen.

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067401481
Share on other sites

Thanks sakis25, I was waiting for that kind of mods. Hope you will find a way to make the first person fuel gauge working (but it sounds hard to do...).

 

As a sugestion, maybe, once you have implemented the gas stations, you can decrease a certain amount of money everytime we refill (if it's to hard to do, just ignore my sugestion).

 

I don't have any control on the first person fuel gauge. The only option to this is a check if the fuel tank is damaged. There is no fuel percentage or anything in the scripts.

Currently I'm working on adding more fuel stations. I'm also trying to find a way to decrease your money when you refill but no progress to this yet. I will need some help for this.

 

For those who can't make it work it's probably because you have updated the game to the latest version.

Edited by sakis25
Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067403256
Share on other sites

 

Thanks sakis25, I was waiting for that kind of mods. Hope you will find a way to make the first person fuel gauge working (but it sounds hard to do...).

 

As a sugestion, maybe, once you have implemented the gas stations, you can decrease a certain amount of money everytime we refill (if it's to hard to do, just ignore my sugestion).

 

I don't have any control on the first person fuel gauge. The only option to this is a check if the fuel tank is damaged. There is no fuel percentage or anything in the scripts.

Currently I'm working on adding more fuel stations. I'm also trying to find a way to decrease your money when you refill but no progress to this yet. I will need some help for this.

 

For those who can't make it work it's probably because you have updated the game to the latest version.

 

What about fixing the safezone problem?

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067403362
Share on other sites

 

Thanks sakis25, I was waiting for that kind of mods. Hope you will find a way to make the first person fuel gauge working (but it sounds hard to do...).

 

As a sugestion, maybe, once you have implemented the gas stations, you can decrease a certain amount of money everytime we refill (if it's to hard to do, just ignore my sugestion).

 

I don't have any control on the first person fuel gauge. The only option to this is a check if the fuel tank is damaged. There is no fuel percentage or anything in the scripts.

Currently I'm working on adding more fuel stations. I'm also trying to find a way to decrease your money when you refill but no progress to this yet. I will need some help for this.

 

For those who can't make it work it's probably because you have updated the game to the latest version.

 

 

I have downgraded my game after the latest patch and all my script mods work except for this one. Has anyone outside the OP have this confirmed as working? I'd love to try it out.

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067403387
Share on other sites

 

 

Thanks sakis25, I was waiting for that kind of mods. Hope you will find a way to make the first person fuel gauge working (but it sounds hard to do...).

 

As a sugestion, maybe, once you have implemented the gas stations, you can decrease a certain amount of money everytime we refill (if it's to hard to do, just ignore my sugestion).

 

I don't have any control on the first person fuel gauge. The only option to this is a check if the fuel tank is damaged. There is no fuel percentage or anything in the scripts.

Currently I'm working on adding more fuel stations. I'm also trying to find a way to decrease your money when you refill but no progress to this yet. I will need some help for this.

 

For those who can't make it work it's probably because you have updated the game to the latest version.

 

What about fixing the safezone problem?

 

I'm not quite sure how to fix the safezone. I tested this on 720p and 1080p and it works fine. I will need some help on this.

Some more issues I can't fix yet is that "IS_THIS_MODEL_A_CAR(Hash model)" apparently is not working yet so I can't check if you are in a car or something else.

Also I'm looking for a way to add markers on the map with the location of the fuel stations but I cant find a solution yet.

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067403513
Share on other sites

alteredbeast

For those who can't make it work it's probably because you have updated the game to the latest version.

 

 

I haven't updated, and my others lua scripts still work fine. By the way, I just remembered, when I used the old lua script version, that I saw a report telling that your script had an error in the line 53 or something (definitely in the 50s I'm pretty sure). Sadly, with the newest version, I'm not able to see the reports alt-tabing like I did, and I can't find any logs for lua anywhere...

Edited by alteredbeast
  • Like 1
Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067403554
Share on other sites

 

Fuel Script V updated to 0.2!

Whooa :lol:

 

Future features should be blips on the map so we easier can find the gas stations :)

 

 

Blips on the map is definitely on my future plans but I don't have this option yet.

 

Mods how can I change the title of the topic?

Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067403781
Share on other sites

Fuel Script V updated to 0.2!

 

What's New:

You can now refill your fuel from petrol stations! (9 available in this version)

Map with petrol station locations included in the archive

Bug fixes

 

Great work! Now it's working as it should. Although, I kinda feel like you run out of gas way too quick. I picked up a random car off the street that had maybe a 1/2 a tank. From the gas station #1 on your map, to the tunnel under Fort Zancudo the tank was empty. I'm not sure if it's possible, but maybe add to where the user can refill his/her gas tank by using the Jerry Can. That would be really cool. Otherwise, great work! Keep it up.

Edited by t9x69
Link to comment
https://gtaforums.com/topic/790833-vrelwip-fuel-script/#findComment-1067403815
Share on other sites

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.