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

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

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

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

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

the_gas

Petrol Mod

Recommended Posts

Pandur

 

You could use DRAW_RECT to draw a Fuel bar. Use a Dark color (for example transparent black) as a backgroudn and some other color (like green) to draw the fuel level. You could also change the color of the fuel bar to red when fuel is low, or maybe even make it flashing in a red color.

 

 

Yes, that would be pretty nice! I like the idea with the speedometer, too. Very useful!!!

At the moment I dont know what I like more: GTAIV or its modders... cool.gifbiggrin.gif

Share this post


Link to post
Share on other sites
Leopard_

OK, petrol mod v3 is released! Download at my forum.

 

 

 

OK, I'm just about it to release v3. The money thing is broken. Trying to fix it. also gonna make a juicy text speedometer/fuel in next version!

 

You could use DRAW_RECT to draw a Fuel bar. Use a Dark color (for example transparent black) as a backgroudn and some other color (like green) to draw the fuel level. You could also change the color of the fuel bar to red when fuel is low, or maybe even make it flashing in a red color.

Hmm.. I suppose it is Draw Rectangle? I've searched it, but i didn't found the params (I'm using C++ script hook). If i know the params, i might do a good looking speedometer.

The switch-to-red thing is a good idea, i maybe will do it.

Share this post


Link to post
Share on other sites
Andrew
OK, I'm just about it to release v3. The money thing is broken. Trying to fix it. also gonna make a juicy text speedometer/fuel in next version!

You could use DRAW_RECT to draw a Fuel bar. Use a Dark color (for example transparent black) as a backgroudn and some other color (like green) to draw the fuel level. You could also change the color of the fuel bar to red when fuel is low, or maybe even make it flashing in a red color.

I didn't realise there was a DRAW_RECT function.

Share this post


Link to post
Share on other sites
sammclean23

hi, going for remaining petrol stations now

 

has this been suggested: turning off petrol just for missions like the SA one?

 

And after i will search for heli pads

 

Sam

Edited by sammclean23

Share this post


Link to post
Share on other sites
Leopard_

Hmm... i don't know how to set money? Somebody say how to take/add money to niko?

I also made an .ini now. Will include keys and toggable functions.

 

EDIT:

I'll do the rest of petrol station locations tomorrow. I'm going to bed.

Share this post


Link to post
Share on other sites
FunGt

I tried the mod, nice one, but I found a bug. The fuel number can be also negative lol. You should make that the fuel number can't be under 0.

Share this post


Link to post
Share on other sites
Andrew

Its getting there slowly. I might release mine soon. Got a bit more work to be done.

 

-3 different priced petrol stations

-7 working petrol stations

-2 stealing locations, gives you a 2 star wanted level

-Saves one lot of fuel between saves. (press key to retrive fuel)

-Each car has randomly generated amount of fuel

-Expensive recovery option should you fun out of petrol.

-Control hazard lights.

Share this post


Link to post
Share on other sites
sammclean23

remaining station coordinates. sorry if ive missed any out but im sure it is quite a thorough search:D

 

user posted image

 

station: -1314.27 1732.04 27.43

station 1: -1393.18 31.04 6.64

Share this post


Link to post
Share on other sites
sammclean23

summary of station coordinates

 

First Island

1131.84 , -353.76 , 19.00

1770.03 , 841.80 , 16.44

1125.81 , 333.24 , 29.42

-1392.85, 30.58, 6.51

 

Small Island above the first one

1451, 1712.86, 16.41

 

Second Island

-479.06, -208.68 ,7.49

 

The station oppsite LCPD was already included

 

Third island

-1314.27, 1732.04, 27.43

-1393.18, 31.04, 6.64

 

 

Helipad coordinates will be on shortly

Edited by sammclean23

Share this post


Link to post
Share on other sites
sammclean23

Finding it difficult locating the helipads because after flying around a while, the gas runs out. After the gas runs out, the gas runs out for all helicopters of that type sad.gif

 

i was flying the anihilator, landed got the police one, but gas was empty.

 

disable helicopters fuel just till the pads are located?

 

EDIT: or use these coordinates of two that ive already found to create a station to allow me to find the rest.

 

2162.20, 841.37, 18.47

2229.64, 736.53, 5.69

 

Sam

Edited by sammclean23

Share this post


Link to post
Share on other sites
Andrew

sammclean23, if this is the same for leos mod, as it is for mine. You should be able to use the cheat function to heal the vehicle and restart the helicopter.

Share this post


Link to post
Share on other sites
the_gas

Good work guys again.

 

Once one, or both of you have finished the mod, send me a pm with mod instructions, screenshots, download links whatever you want to say and ill update the first post with what you send me in a pm.

Share this post


Link to post
Share on other sites
Andrew

Or I can update the first post tounge.gif

 

Anyway hope to restart work on this when I get back from University.

Share this post


Link to post
Share on other sites
HazardX

The DRAW_RECT fucntion for C++:

 

static void DrawRect(f32 centerX, f32 centerY, f32 width, f32 height, u32 R, u32 G, u32 B, u32 A) { NativeInvoke::Invoke<scriptVoid>("DRAW_RECT", centerX, centerY, width, height, R, G, B, A); }

 

 

In .Net scripts you can use PerFrameDrawing to draw text and rectangles on screen (there is an example included).

Share this post


Link to post
Share on other sites
a-k-t-w

is learning .net hard? confused.gif

Share this post


Link to post
Share on other sites
Andrew
The DRAW_RECT fucntion for C++:

 

static void DrawRect(f32 centerX, f32 centerY, f32 width, f32 height, u32 R, u32 G, u32 B, u32 A) { NativeInvoke::Invoke<scriptVoid>("DRAW_RECT", centerX, centerY, width, height, R, G, B, A); }

 

 

In .Net scripts you can use PerFrameDrawing to draw text and rectangles on screen (there is an example included).

I had a play with that in the .net hook. Seems relatively easy. One thing I'd like it to stop doing is to draw in the center.

Share this post


Link to post
Share on other sites
the_gas
Or I can update the first post tounge.gif

 

Anyway hope to restart work on this when I get back from University.

Ok, didn't realise you had such mighty privileges. sigh.gif

Share this post


Link to post
Share on other sites
Leopard_

 

Or I can update the first post tounge.gif

 

Anyway hope to restart work on this when I get back from University.

Ok, didn't realise you had such mighty privileges. sigh.gif

Hey, you could include my version too in the main post?

 

@HazardX: Thank you for rectangle thing! I'll make an box editor soon

 

@sam: I'll PM you a special version of my mod. That means helis don't have fuel.

 

Leopard

Share this post


Link to post
Share on other sites
HazardX
I had a play with that in the .net hook. Seems relatively easy. One thing I'd like it to stop doing is to draw in the center.

I've included a DrawRectangle function in .Net that takes a RectangleF. A RectangleF takes left, top, width and height.

Share this post


Link to post
Share on other sites
sammclean23
sammclean23, if this is the same for leos mod, as it is for mine. You should be able to use the cheat function to heal the vehicle and restart the helicopter.

thanks for that smile.gif

Share this post


Link to post
Share on other sites
sammclean23

 

Or I can update the first post tounge.gif

 

Anyway hope to restart work on this when I get back from University.

Ok, didn't realise you had such mighty privileges. sigh.gif

Hey, you could include my version too in the main post?

 

@HazardX: Thank you for rectangle thing! I'll make an box editor soon

 

@sam: I'll PM you a special version of my mod. That means helis don't have fuel.

 

Leopard

thanks aswell smile.gif

 

ill have the helipad coords by tonight with locations once again smile.gif

Share this post


Link to post
Share on other sites
the_gas
Or I can update the first post tounge.gif

 

Anyway hope to restart work on this when I get back from University.

Ok, didn't realise you had such mighty privileges. sigh.gif

Hey, you could include my version too in the main post?

 

@HazardX: Thank you for rectangle thing! I'll make an box editor soon

 

@sam: I'll PM you a special version of my mod. That means helis don't have fuel.

 

Leopard

Yeah i think both should be included, and then people have an alternative choice.

Share this post


Link to post
Share on other sites
Leopard_

Ok. Either i'm stupid or i'm too tired to code. I have 1000 errors in my script, same amount of bugs too. Trying to fix it. Also doing a nice speedometer biggrin.gif

 

EDIT: YES!!! Finally i fixed this whole sht! Man.. i'm so happy now colgate.gifcolgate.gif

Gonna do a preview video soon...

 

Ok, so v4.5 will include

- fixed pay bug

- Include a few heli fuel places

- Juicy speedometer (with a warning text if fuel is low)

 

Leopard

Share this post


Link to post
Share on other sites
the_gas

Looking forward to it. happy.gif

Share this post


Link to post
Share on other sites
Pandur

yay... something's going on in this thread! icon14.gif

i am back from work, so i start the game and look for possible boat stations...

Share this post


Link to post
Share on other sites
Andrew

Nearly ready for a release of mine.

 

- 4 different blip types indentifying the different stations (A, C, J, K)

- 3 different station prices (Ron, TerraOil and Globe) 209, 239 and 260 for 10l of fuel

- 9 working paying stations

- 7 stealing locations (ranging from tankers to, the oil facilties in Acter, get a 2 star wanted level)

- Expensive emergency recovery. Fills the car with 100l of petrol to get you to a petrol station.

- Fuel gauge changes colour depending on how much fuel in the tank, with text display.

- Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright)

 

Share this post


Link to post
Share on other sites
Leopard_
- Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright)

Cool idea!

 

Myself, i don't have any plans what to do. Oh wait.. i'm gonna do heli/boat, right! Hmm, what more.. i could try to make so if the player calls "TOW-555-0100" a truck driver will come to you lol.gif

 

Leopard

Share this post


Link to post
Share on other sites
Andrew
- Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright)

Cool idea!

 

Myself, i don't have any plans what to do. Oh wait.. i'm gonna do heli/boat, right! Hmm, what more.. i could try to make so if the player calls "TOW-555-0100" a truck driver will come to you lol.gif

 

Leopard

I don't think we have access to the cell phone?

Share this post


Link to post
Share on other sites
Leopard_
- Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright)

Cool idea!

 

Myself, i don't have any plans what to do. Oh wait.. i'm gonna do heli/boat, right! Hmm, what more.. i could try to make so if the player calls "TOW-555-0100" a truck driver will come to you lol.gif

 

Leopard

I don't think we have access to the cell phone?

I think? There's an emergencycall.sco inside scripts.img. Could be something init.

Share this post


Link to post
Share on other sites
Andrew
- Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright)

Cool idea!

 

Myself, i don't have any plans what to do. Oh wait.. i'm gonna do heli/boat, right! Hmm, what more.. i could try to make so if the player calls "TOW-555-0100" a truck driver will come to you lol.gif

 

Leopard

I don't think we have access to the cell phone?

I think? There's an emergencycall.sco inside scripts.img. Could be something init.

Hmm, could be we can decompile SCO scripts don't think we can edit them yet.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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