Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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. Grand Theft Auto Series

      1. Bugs*
      2. 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. GTA San Andreas

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

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

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. 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

    2. Support

    3. Suggestions

co-ords


Bernard Jazz
 Share

Recommended Posts

Bernard Jazz

is there anyway of showing player co-ords in SA?

Be it using an editted SCM or a program like steve-m's one..

Link to comment
Share on other sites

random_download

Yes, TwoZero made one already, scm based. You would do it just the same as with vice city, but there are no gxt editors yet, so you would have to use an orginal text string. I think TwoZero used the insane stunt bonus text. Remember to convert the floats to integers though!

Link to comment
Share on other sites

*bump*

Thought it'd be handy to post the code for having ingame coords displayed all the time (in your own mod). Might help a lot of the new modders that have recently appeared here.

 

004F: create_thread ££COORDS

 

 

 

:COORDS0001:  wait  0 ms00A0:  store_actor $PLAYER_ACTOR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z0172:  $PLAYER_Z_ANGLE = actor $PLAYER_ACTOR z_angle0011:  $PLAYER_X *=  10.00011:  $PLAYER_Y *=  10.00011:  $PLAYER_Z *=  10.00011:  $PLAYER_Z_ANGLE *=  10.0008C:  $PLAYER_X = float_to_integer  $PLAYER_X008C:  $PLAYER_Y = float_to_integer  $PLAYER_Y008C:  $PLAYER_Z = float_to_integer  $PLAYER_Z008C:  $PLAYER_Z_ANGLE = float_to_integer  $PLAYER_Z_ANGLE03F0:  10341:  103E4:  00348:  0045A:  25.0 25.0 "NUMBER" $PLAYER_X045A:  25.0 33.0 "NUMBER" $PLAYER_Y045A:  25.0 41.0 "NUMBER" $PLAYER_Z045A:  25.0 49.0 "NUMBER" $PLAYER_Z_ANGLE00D6:  if  000DF:   actor $PLAYER_ACTOR driving004D:  jump_if_false ££COORDS03C0:  $PLAYER_CAR = actor $PLAYER_ACTOR car00AA:  store_car $PLAYER_CAR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z0174:  $PLAYER_Z_ANGLE = car $PLAYER_CAR z_angle0011:  $PLAYER_X *=  10.00011:  $PLAYER_Y *=  10.00011:  $PLAYER_Z *=  10.00011:  $PLAYER_Z_ANGLE *=  10.0008C:  $PLAYER_X = float_to_integer  $PLAYER_X008C:  $PLAYER_Y = float_to_integer  $PLAYER_Y008C:  $PLAYER_Z = float_to_integer  $PLAYER_Z008C:  $PLAYER_Z_ANGLE = float_to_integer  $PLAYER_Z_ANGLE03F0:  10341:  103E4:  00348:  0045A:  25.0 25.0 "NUMBER" $PLAYER_X045A:  25.0 33.0 "NUMBER" $PLAYER_Y045A:  25.0 41.0 "NUMBER" $PLAYER_Z045A:  25.0 49.0 "NUMBER" $PLAYER_Z_ANGLE0002:  jump ££COORDS

 

 

This displays the X, Y, Z and Z Angle values in the left-top corner with one decimal, (the last digit) and it displays vehicle coords when you're in a vehicle.

You don't need to change the .gxt file.

Link to comment
Share on other sites

trx, have you checked that code? You seem to display the players position, then check if they're driving and if they are display it again, may I suggest checking where they are first then executing the appropriate code. Also, do you know what:

 

 

03F0:  10341:  103E4:  00348:  0

 

 

do?

Link to comment
Share on other sites

Yes, I have tested the code and it works fine. Good point about the coords displaying twice though. suicidal.gif It shouldn't matter much though, as it will run fast enough to create the illusion that only the car coords are displayed if you're in a car. (I think, I'm pretty positive I got car coords when I used the code for gta3 and vice)

 

03F0:  10341:  103E4:  00348:  0

 

These are required draw_text defines, like

03f0=1,text_draw_toggle %1d%

I just used the opcodes directly since I copied the code from a Mission Assembler VC project. They are in the SASCM.ini file though. wink.gif

As a matter of fact, you don't need to toggle 03F0 everytime, but as with the other thing, it's not in the way either.

 

edit

 

 

004F: create_thread ££COORDS_INCAR:COORDS_INCAR0001: wait  0 ms00D6: if  000DF:  actor $PLAYER_ACTOR driving004D: jump_if_false ££COORDS_ONFOOT03C0: $PLAYER_CAR = actor $PLAYER_ACTOR car00AA: store_car $PLAYER_CAR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z0174: $PLAYER_Z_ANGLE = car $PLAYER_CAR z_angle0002: jump ££DRAW_COORDS:COORDS_ONFOOT00A0:  store_actor $PLAYER_ACTOR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z0172:  $PLAYER_Z_ANGLE = actor $PLAYER_ACTOR z_angle0002:  jump ££DRAW_COORDS:DRAW_COORDS0011:  $PLAYER_X *=  10.00011:  $PLAYER_Y *=  10.00011:  $PLAYER_Z *=  10.00011:  $PLAYER_Z_ANGLE *=  10.0008C:  $PLAYER_X = float_to_integer  $PLAYER_X008C:  $PLAYER_Y = float_to_integer  $PLAYER_Y008C:  $PLAYER_Z = float_to_integer  $PLAYER_Z008C:  $PLAYER_Z_ANGLE = float_to_integer  $PLAYER_Z_ANGLE03F0:  10341:  103E4:  00348:  0045A:  25.0 25.0 "NUMBER" $PLAYER_X045A:  25.0 33.0 "NUMBER" $PLAYER_Y045A:  25.0 41.0 "NUMBER" $PLAYER_Z045A:  25.0 49.0 "NUMBER" $PLAYER_Z_ANGLE0002:  jump ££COORDS_INCAR

 

 

There you have it, Mr. Picky tounge.gif

 

edit

lol, just noticed there was a mistake in my code. the new code did not display the vehicle coords, but also the player coords. fixed that. duh suicidal.gif

Edited by trx
Link to comment
Share on other sites

Fair enough, sorry. I asked about the OpCodes as I didn't know if they were known or you just did what you did.
Link to comment
Share on other sites

  • 3 years later...
Fair enough, sorry. I asked about the OpCodes as I didn't know if they were known or you just did what you did.

dontgetit.gif i need to know why i need to poit coordinates

with SANY BULDER

 

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.