Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Tuners
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    2. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    3. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    4. Bugs*

    1. Grand Theft Auto Series

      1. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

[V|REL/WIP] Fuel Script


sakis25
 Share

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
Share on other sites

jedijosh920

Good job! I always like being immersive in the world of Los Santos, even if it comes to car fuel.

Edited by jedijosh920
Link to comment
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
Share on other sites

Woow, thats awesome. Cant wait to add fuel stations.

And how long it takes to spend all the fuel?

Link to comment
Share on other sites

Does the 1st person fuel gauge work? I know it does when you shoot the fuel tank.

This. I wonder the same myself.

Link to comment
Share on other sites

alteredbeast

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...

  • Like 1
Link to comment
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
Share on other sites

I assume your gas bar has the same problem as mine: not default Safezone size value from the settings breaks it..

Edited by slik
Link to comment
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
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
Share on other sites

alteredbeast

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

 

 

I haven't updated the game (I even shared my files for those who wanted to downgrade the retail version of the game)

Link to comment
Share on other sites

Clipper95

Does the 1st person fuel gauge work? I know it does when you shoot the fuel tank.

Then we need OPENIV For da job

Link to comment
Share on other sites

vithepunisher

Doesn't work did everything correctly and nothing :/

Link to comment
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
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
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
Share on other sites

EnforcerZhukov

OMG!!! I wanted a fuel script for GTA V!!! Great work! ^^

Link to comment
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
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
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

Edited by sakis25
Link to comment
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 :)

Edited by gta5mods
Link to comment
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
Share on other sites

EnforcerZhukov

Curious, it isn't working for me neither :(

Theorically my LUA works fine, i tried a bodyguard spawner on LUA and seems to run OK.

Link to comment
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
Share on other sites

Curious, it isn't working for me neither :(

Theorically my LUA works fine, i tried a bodyguard spawner on LUA and seems to run OK.

 

Make sure "FuelScriptV.lua" is in the "scripts\addins\" folder

Are you getting any errors?

Link to comment
Share on other sites

Can you enable the Gas Stations on the map in game?

Edited by Rich246
Link to comment
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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