Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ultimate Fuel Script 2

(8 reviews)

1 Screenshot

Since it is now part of Grand Theft Auto Ultimate Vehicle Pack V10 (http://www.gta4-mods.com/vehicles/grand-theft-auto-ultimate-vehicle-pack-v10-tb-f18911)

and it is tanking to much time to add all features itended, I feel it is now time for a release.

Installation

Download and install an asiloader of your choice, although this mod may correctly work with dsound.dll, xlive.dll is recommended.

Copy the contents of 'GTA root' folder to your GTA IV main directory (tipically C:Program FilesRockstar GamesGTA IV).

Scripthook already included.

Updates from version 1

-new code added to allow fuel consumption by helicopters and boats, and added 2 new stations type for both new vehicles types

-vehicle fuel data is now retrieved via car's hash code or name, hash code beeing prefered (especially usefull for added cars support);

-added a STARS parameter for all stations types, makes so that the player will have a minimum of the specified stars upon refuel (combine with price at 0.0 to emulate fuel stealing);

-removed possibility to save cars (due to the fact this was not working correctly for many people, it is removed until a solution is found);

-a better way to solve the run out problem than just leaving the car (cell phone may be usefull);

-refuel code updated and more stable;

-rewritten gauge, will allow a more reliable fuel level display, and features low fuel flashing gauge;

-added a low fuel level warning sound (volume is not contoled by game volume, only by system volume, so be aware of that).

Things to notice

-a lot more to be added, so more updates maybe uploaded soon;

-sorry about the new stations locations, but I simply don't have time to fly around and find good spots for them, feel free to add yours in the comments.

-the refuel code was partially rewritten, changed money debt scheme to work more as intended;

-save car function is beeing tested and developed for Car Alarm script for now, so checking that for error reporting, might help to add the feature here aswell;

-due to a techinical issue, the helicopters consumption algorithm is diferent from the other two, this may cause expected weird behaviour. For instance, setting up GAMEPAD=true, may still not work for non Xbox360 Controllers. For those who use a keyboard setting GAMEPAD=false, should result in no problems. (SlimDx.dll handles Xbox360 Controller, but it is still required when not using one. If you already have SlimDX SDK, SlimDX.dll is not required);

-if you have added cars (not replaced) you may still use exclusive fuel data for this vehicles, for this you just need to use the vehicles's hash code instead of the vehicle name. To be sure about the hash code, open the ini file, and add under [DASHBOARD] the line 'MODE=dev', start GTA and you should have loads of info on screen including the current car's hash code. Use the hash code in the same way as the vehicle name is already used in the ini file. You can use the dev mode to be sure the correct values are being loaded aswell. When in dev mode pressing the Q key forces the ini file to be reloaded.

-be aware that more things maybe included in this release, if their not described here or on older versions, then they are not finished yet.

Errors or ideias - prodrigues1990@gmail.com

What's New in Version 2

Released

  • -new code added to allow fuel consumption by helicopters and boats, and added 2 new stations type for both new vehicles types
  • -vehicle fuel data is now retrieved via car's hash code or name, hash code beeing prefered (especially usefull for added cars support);
  • -added a STARS parameter for all stations types, makes so that the player will have a minimum of the specified stars upon refuel (combine with price at 0.0 to emulate fuel stealing);
  • -removed possibility to save cars (due to the fact this was not working correctly for many people, it is removed until a solution is found);
  • -a better way to solve the run out problem than just leaving the car (cell phone may be usefull);
  • -refuel code updated and more stable;
  • -rewritten gauge, will allow a more reliable fuel level display, and features low fuel flashing gauge;
  • -added a low fuel level warning sound (volume is not contoled by game volume, only by system volume, so be aware of that).

User Feedback

Recommended Comments

mamz

Members

Does the fuel consumption mean thats your fuel mileage when driving?

Rodrigues

Members Author

Does the fuel consumption mean thats your fuel mileage when driving?

Not really. It works like this CurrentFuel = CurrentFuel - VehicleRPM * (DRAIN / 100.0F), it runs this every second.

The higher the DRAIN value, more gas is consumed.

MSKI8877

Members

Is there any way to move the location of the fuel gauge? Possible to above the map? When I'm running LCPDFR and the fuel script together, I'm not able to see the street names because of the script's positioning.

SIR_Sergeant

Members

It isn't working. I changed the key from X to M because I have the police helper, and nothing happens at the station. I tried it on another key as well and it still did nothing.

Rodrigues

Members Author

Is there any way to move the location of the fuel gauge? Possible to above the map? When I'm running LCPDFR and the fuel script together, I'm not able to see the street names because of the script's positioning.

I will try to add that to the ini file.

Faracus

Members

I changed my fuel key to Y to avoid the conflict with Police Helper, and now it does not work.

Carrythxd

Members

Rodrigues

Members Author

I changed my fuel key to Y to avoid the conflict with Police Helper, and now it does not work.

Remove the blank spaces before and after the '=' signal and do not use literal keys use the respective key code instead, view the link for a list of keycodes - http://msdn.microsoft.com/en-us/library/system.windows.forms.keys(v=vs.71).aspx

Really sorry for that, v1.1 ready and fixes that and adds gauge location to ini file

Rodrigues

Members Author

Are you tryng to say anything ?

J T

Members

^ showing the fuel script which happens at 33 25 mark

Rodrigues

Members Author

^ showing the fuel script which happens at 33 25 mark

Not this one.

Faracus

Members

thats not the most recent fuel script, the newest one is a green bar. The button now works....for a few seconds, it goes up a little then the gauge dissapears and the game freezes (I'm only testing in SP right now) and even if I reload scripts, just pressing it once will make it freeze.

Rodrigues

Members Author

thats not the most recent fuel script, the newest one is a green bar. The button now works....for a few seconds, it goes up a little then the gauge dissapears and the game freezes (I'm only testing in SP right now) and even if I reload scripts, just pressing it once will make it freeze.

Please make yourself clear. Are talking about which script ?

Faracus

Members

Ultimate Fuel Script, it uses a green bar, not the Guage bar, thats Simple Fuel Mod (that is no longer being worked on)

Rodrigues

Members Author

I got you now, but still not understanding why this conversation started lol, forget about it. Enjoy playing

Faracus

Members

I have a bug with my script. When I press my key to refuel it will go up a little, then the bar will vanish until I let go of the button, and it has not gone up any more. Even if I drive to a new gas station after that, just pressing my button makes the game freeze.

Rodrigues

Members Author

I have a bug with my script. When I press my key to refuel it will go up a little, then the bar will vanish until I let go of the button, and it has not gone up any more. Even if I drive to a new gas station after that, just pressing my button makes the game freeze.

Do you see any message on the top left corner starting with "@_PerFrameDrawing - " ?

Which key code are you using ?

Does the fuel bar vanishes completely or does it stay in grey ?

Does it happen with any vehicle or vehicle in particularly ?

I have changed the refuel code a bit, guess it is now a bit messy. Just trying to pinpoint your problem and see if I can fix it.

Rodrigues

Members Author

I don't see any messages, I am using B REFUEL=66, It goes away completly, and I've only tryed it on the FBI.

Here is a video of the problem. https://www.youtube....XE&feature=plcp

Do you have any other script mods ? (and please check the scripthook versions)

Can you try different scenarios for me ? Like :

different car same key

same car different key

different car different key

It's quite odd that problem, the refuel code and the gauge code are in different scripts ! And the gauge should appear as long as you are in a vehicle. But since you have other mods, nothing is "for sure".

Faracus

Members

In the scripts folder, I have LCPD:FR, Indicator Mod, IVDashCam, Less Overtake, and vdH's Police Helper and Towing Service. I noticed that it shows my balance as $1, maybe it is because I am out of cash. I will try those scenarios, and also do one with more cash.

Rodrigues

Members Author

out of cash might be the reason

Faracus

Members

That is the reason :). I just used SNT to spam a ton of money and it works great.

Rodrigues

Members Author

lol, I actually had that problem once, while testing, really frustrating searching for something as evident as that. But my gauge never disapears and that is still odd.

Powler

Members

Love this mod i think it is really well done :o)

but can i ask if would be possible to put a fuel station somewhere for helicopters?

Not a major issue though so please dont feel i'm being rude :o)

Nice work :o)

Rodrigues

Members Author

Helicopters do not consume fuel, currently working on that. And boats too.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.