sakis25 41 Posted April 30, 2015 Share Posted April 30, 2015 (edited) Fuel Script V 0.8 Mod by Sakis25 updated 11-6-15 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 when using the jerry can Special Thanks: - haws1290 - Daxwolf - faztsquirrel - headscript Installation Instructions: 1. Make sure you have the above requirements first 2. Extract "FuelScriptV 0.8.zip" in the GTA 5 Folder 3. Make sure "FuelScriptV.lua" is in the "scripts\addins\" folder 4. Enjoy! Support: PLEASE REPORT ANY BUGS IF ANY Download: FuelScriptV 0.8.zip Mirror 1 Update 19-9-18 Quote I was interested in bringing back this mod by converting it to C# and making it a more native mod without the need of LUA Plugin. Converting it to C# will give me more options like making a proper fuel bar that stays automatically above the minimap, native UI and better input options and more. But I don't have much experience in C# so it would take a lot of time if I try to make it myself. So if you are interested and would like to see this mod improve and you are experienced with C# send me a pm so we can work together. Petrol Stations Map: Edited September 19, 2018 by sakis25 calvooo, bruvinito, Gollywock and 17 others 20 Link to post Share on other sites More sharing options...
jedijosh920 1,231 Posted April 30, 2015 Share Posted April 30, 2015 (edited) Good job! I always like being immersive in the world of Los Santos, even if it comes to car fuel. Edited April 30, 2015 by jedijosh920 Link to post Share on other sites More sharing options...
gta5mods 9 Posted April 30, 2015 Share Posted April 30, 2015 (edited) 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 Edited April 30, 2015 by gta5mods Link to post Share on other sites More sharing options...
jfarre20 1 Posted April 30, 2015 Share Posted April 30, 2015 Does the 1st person fuel gauge work? I know it does when you shoot the fuel tank. flnyla 1 Link to post Share on other sites More sharing options...
sakis25 41 Posted May 1, 2015 Author Share Posted May 1, 2015 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 Thank you for the locations. I will try to add them all in an update. Link to post Share on other sites More sharing options...
alteredbeast 6 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
calvooo 104 Posted May 1, 2015 Share Posted May 1, 2015 Woow, thats awesome. Cant wait to add fuel stations. And how long it takes to spend all the fuel? Link to post Share on other sites More sharing options...
flnyla 5 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
alteredbeast 6 Posted May 1, 2015 Share Posted May 1, 2015 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... vithepunisher 1 Link to post Share on other sites More sharing options...
PatrickJr. 367 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
slik 10 Posted May 1, 2015 Share Posted May 1, 2015 (edited) I assume your gas bar has the same problem as mine: not default Safezone size value from the settings breaks it.. Edited May 1, 2015 by slik Link to post Share on other sites More sharing options...
LordJustin 0 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
gta5mods 9 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
alteredbeast 6 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
xXSimonGhostxX 21 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
vithepunisher 9 Posted May 1, 2015 Share Posted May 1, 2015 Doesn't work did everything correctly and nothing Link to post Share on other sites More sharing options...
sakis25 41 Posted May 1, 2015 Author Share Posted May 1, 2015 (edited) 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 May 1, 2015 by sakis25 Link to post Share on other sites More sharing options...
gta5mods 9 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
t9x69 30 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
EnforcerZhukov 13 Posted May 1, 2015 Share Posted May 1, 2015 OMG!!! I wanted a fuel script for GTA V!!! Great work! ^^ Link to post Share on other sites More sharing options...
sakis25 41 Posted May 1, 2015 Author Share Posted May 1, 2015 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 post Share on other sites More sharing options...
alteredbeast 6 Posted May 1, 2015 Share Posted May 1, 2015 (edited) 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 May 1, 2015 by alteredbeast vithepunisher 1 Link to post Share on other sites More sharing options...
GRAX 3 Posted May 1, 2015 Share Posted May 1, 2015 cool! makes GTAV mode realistic. Link to post Share on other sites More sharing options...
sakis25 41 Posted May 1, 2015 Author Share Posted May 1, 2015 (edited) 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 May 1, 2015 by sakis25 Link to post Share on other sites More sharing options...
gta5mods 9 Posted May 1, 2015 Share Posted May 1, 2015 (edited) Fuel Script V updated to 0.2! Whooa Future features should be blips on the map so we easier can find the gas stations Edited May 1, 2015 by gta5mods Link to post Share on other sites More sharing options...
sakis25 41 Posted May 1, 2015 Author Share Posted May 1, 2015 Fuel Script V updated to 0.2! Whooa 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 post Share on other sites More sharing options...
EnforcerZhukov 13 Posted May 1, 2015 Share Posted May 1, 2015 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 post Share on other sites More sharing options...
t9x69 30 Posted May 1, 2015 Share Posted May 1, 2015 (edited) 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 May 1, 2015 by t9x69 Link to post Share on other sites More sharing options...
sakis25 41 Posted May 1, 2015 Author Share Posted May 1, 2015 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 post Share on other sites More sharing options...
Rich246 36 Posted May 1, 2015 Share Posted May 1, 2015 (edited) Can you enable the Gas Stations on the map in game? Edited May 1, 2015 by Rich246 Link to post Share on other sites More sharing options...