Help [HELP] Vehicle Position (Memory Address)

0xB6F5F0

Active member
Joined
Aug 11, 2013
Messages
60
Reaction score
0
i'm talking about somthing like this for CVehicle
Code:
* CPed +0x14 = Pointer to XYZ position structure (and rotation)
o (CPed+0x14) +0x0 to +0x2C = [dword] Is the rotation matrix
o (CPed+0x14) +0x30 = [dword] XPos
o (CPed+0x14) +0x34 = [dword] YPos
o (CPed+0x14) +0x38 = [dword] ZPos
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
174
describe what you want, I think no one knows what you mean.
 

H4X0R

Member
Joined
Aug 12, 2013
Messages
16
Reaction score
0
describe what you want, I think no one knows what you mean.
These addresses:
(CPed+0x14) +0x30 = [dword] XPos
o (CPed+0x14) +0x34 = [dword] YPos
o (CPed+0x14) +0x38 = [dword] ZPos

Can be used teleport player, but he want the addresses that teleport vehicle too
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
174
actually it's a bit more work and I wonder why you coulndt find it.

Code:
 Cars

    0xB6F980 - Is the direct pointer to the pool start (CVehicle)
    0xBA18FC - Current vehicle pointer:
        0 = on-foot
        >0 = in-car 
    0x969084 - First vehicle you got into 

Note: To get the next vehicle, so the second one, you need to add +0x4 as many times you want. They are 0 if you haven't entered a first/second/third/etc car yet.

    0xB74494 - Contains a pointer to main struct 

This struct:

    +0 = Contains a pointer to the first element in the pool
    +4 = Contains a pointer to a byte map indicating which elements are in use
    +8 = [dword] Is the maximum number of elements in the pool
    +12 = [dword] Is the current number of elements in the pool 

Each vehicle object is 2584 (0xA18) bytes. It starts at 0xC502AA0.

For each vehicle in the pool:

    +20 = [byte] Contains a pointer to the rotation/position matrix (84 bytes):
        +0 = [float] X-axis Rotation (Grad)
        +4 = [float] Y-axis Rotation (Grad)
        +8 = [float] Z-axis Rotation (Grad)
        +16 = [float] X-axis Rotation (Looking)
        +20 = [float] Y-axis Rotation (Looking)
        +24 = [float] Z-axis Rotation (Looking)
        +48 = [float] X-axis Position
        +52 = [float] Y-axis Position
        +56 = [float] Z-axis Position

Source: http://www.gtamodding.com/index.php?tit ... s_%28SA%29
 
Top