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

Documenting GTA-SA memory addresses


JernejL
 Share

Recommended Posts

0xB79490[float] - Address affecting to respect stats

Link to comment
Share on other sites

CPed + 0x480[DWORD] - Pointer to CPlayerData
CPed + 0x550[CVector(2)] - Dedicated to player's angles
CPed + 0x598[DWORD] - ePedType
CPed + 0x59C[DWORD] - Pointer to CPedStat

Values for CPed State(Taken from DK's plug-in):

0:None
1:Idle
2:Look entity
3:Look heading
4:Wander range
5:Wander path
6:Seek position
7:Seek entity
8:Pursue
9:Follow path
10:Sniper mode
11:Rocketlauncher mode
12:Dummy
13:Pause
14:Attack
15:Fight
16:Face phone
17:Make phonecall
18:Chat
19:Mug
20:Aimgun
21:AI Control
22:Seek car
23:Seek boat position
24:Follow route
25:CPR
26:Solicit
27:Buy ice cream
28:Investigate event
29:Evade step
30:On fire
31:Sunbathe
32:Flash
33:Jog
34:Answer mobile
35:Hang out
36:States no AI
37:Abseil from heli
38:Sit
39:Jump
40:Fall
41:Getup
42:Stagger
43:Evade dive
44:States can shoot
45:Enter train
46:Exit train
49:Arrest player
50:Driving
51:Passenger
52:Taxi passenger
53:Open door
54:Die
55:Dead
56:Die by stealth
57:Carjack
58:Dragged from car
59:Enter car
60:Steal car
61:Exit car
62:Hands up
63:Arrested
64:Deploy stinger

Edited by Frouk
Link to comment
Share on other sites

  • 3 months later...
Shiro Naomi

There are a addres to get x,y,z of the aim?
I mean, where are you aiming in the map, like (2000.0, 535.0, 20.0)

Note: I dont use VSC to make .asi, only full .cs

 

Other stuff
How i can get the Move speed from player?

 

ScreenShot_20211112033349.png

 

This dont work: 

 

7@ = 0xB7CD9C
0A8D: 7@ = read_memory 7@ size 4 virtual_protect 0
7@ += 0x1C
//0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0

 

Link to comment
Share on other sites

4 hours ago, Shiro Naomi said:

How i can get the Move speed from player?

Easy way:

06AC: [email protected] = actor $PLAYER_ACTOR movement_speed

 

Using memory codes:

[email protected] = 0xB7CD98 // pointer to player data
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x4  // offset from start of player data to player info structure of player 1
[email protected] += 0x1C // offset from start of player info to movement speed
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0

 

Probably; the computer I was using to run SA doesn't work anymore, so I can't test the codes myself. Sorry.

 

Added: I once wrote a HUD script that displayed CJ's movement speed as reported by opcode 06AC: but the results were poor while on-foot. Vehicles displayed a readable number that transitioned smoothly. But when on foot the speed value seemed to be based on CJ's center of gravity, which tends to lurch forward in spurts as the running animation plays, resulting in an unreadable value. 

Edited by OrionSR
Link to comment
Share on other sites

Shiro Naomi
On 11/12/2021 at 8:23 AM, OrionSR said:

Using memory codes:

[email protected] = 0xB7CD98 // pointer to player data
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x4  // offset from start of player data to player info structure of player 1
[email protected] += 0x1C // offset from start of player info to movement speed
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0

I see, it work now (Edit: Dont work, i get other value (7.38484e-43), so i dont know)
well, I just put that to know how to get the addres of that value, i dont really care about the movement of the player, but thanks for answering, now i know how to get those addres
On the other hand, if i need an addres to get the coordinates of where the player is aiming, unlike the opcode (0667: AS_actor -1 aim_at 969.3931 -1098.341 22.877 120000 ms), which is to force the actor to aim to that direction, but what i want, is to get those coordinates to be able to make a mod that i want to make
In all the mods I have seen of "aimbot" since most of them dont work, what they do is to get the coordinates of the "camera" and "target_camara" and then do a thousand mathematical operations to get where's the player aiming in the map
But is there an addres that solves that?
Like

 0A8D: $TEMPVAR_FLOAT_1 = read_memory 0x00000000 size 4 virtual_protect 0 //X
 0A8D: $TEMPVAR_FLOAT_2 = read_memory 0x00000004 size 4 virtual_protect 0 //Y
 0A8D: $TEMPVAR_FLOAT_3 = read_memory 0x00000008 size 4 virtual_protect 0 //Z
// So, i could do something like "create_explosion_at $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3"

I will soon be posting a lot of address that no one has seen before, as i have been finding them while probing all the structure of cars, pedestrians, objects and markers

Edited by Shiro Naomi
Dont work the player data pool and i get other values
Link to comment
Share on other sites

Shiro Naomi
On 3/3/2018 at 8:10 PM, DK22Pac said:

I hate CLEO and CLEO 'scripters'.

Well, im one

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.