Difference between revisions of "Memory Addresses (GTA4)"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
A list of [[Wikipedia:Data_structure|Structures]] that occur in GTA IV's memory. | A list of [[Wikipedia:Data_structure|Structures]] that occur in GTA IV's memory. | ||
+ | |||
+ | ===VECTOR=== | ||
+ | |||
+ | <source lang="cpp">struct VECTOR | ||
+ | { | ||
+ | float x; // 0x0 | 0 | ||
+ | float y; // 0x4 | 4 | ||
+ | float z; // 0x8 | 8 | ||
+ | float unk; | ||
+ | };</source> | ||
+ | |||
+ | ===CVector=== | ||
+ | |||
+ | <source lang="cpp">struct CVector | ||
+ | { | ||
+ | VECTOR bodyHeading; // 0x0 | 0 | ||
+ | VECTOR visionHeading; // 0x10 | 16 | ||
+ | VECTOR unkVector; // 0x20 | 32 | ||
+ | VECTOR position; // 0x30 | 48 | ||
+ | };</source> | ||
==Classes== | ==Classes== | ||
Line 65: | Line 85: | ||
A list of [[Wikipedia:Variables#Computer_programming|Variables]] that occur in GTA IV's memory. | A list of [[Wikipedia:Variables#Computer_programming|Variables]] that occur in GTA IV's memory. | ||
− | <source lang="cpp">/* 0xF56BC4 */BYTE AESEncryptionKey[32] // 1.0.2.0</source> | + | <source lang="cpp">/* 0xF56BC4 */ BYTE AESEncryptionKey[32] // 1.0.2.0</source> |
{{stub}} | {{stub}} |
Revision as of 09:10, 15 February 2009
GTA4 for PC Memory Addresses
Contents
Structures
A list of Structures that occur in GTA IV's memory.
VECTOR
struct VECTOR
{
float x; // 0x0 | 0
float y; // 0x4 | 4
float z; // 0x8 | 8
float unk;
};
CVector
struct CVector
{
VECTOR bodyHeading; // 0x0 | 0
VECTOR visionHeading; // 0x10 | 16
VECTOR unkVector; // 0x20 | 32
VECTOR position; // 0x30 | 48
};
Classes
A list of Classes that occur in GTA IV's memory.
scrThread
class scrThread
{
public:
virtual ~scrThread();
virtual int reset(int i1,int i2,int i3);
virtual int run(int i1);
virtual int loop(int i1);
virtual int closeDown();
DWORD threadId;
DWORD scriptHash;
DWORD state;
DWORD IP;
DWORD currentFrame;
DWORD SP;
DWORD timerA;
DWORD timerB;
DWORD timerC;
float waitTime;
BYTE zPadding1[28];
DWORD exIP;
DWORD exFrameSP;
BYTE zPadding2[4];
void* stack;
BYTE zPadding3[4];
void* XLiveBuffer;
BYTE zPadding4[8];
char* exitMessage;
char programName[54];
BYTE zPadding5[14];
bool saveScript;
bool playerControlOnInMissionCleanup;
bool clearHelpInMissionCleanup;
BYTE zPadding6[1];
bool allowNonMinigameTextMessages;
BYTE zPadding7[1];
bool errorInScript;
bool canBePaused;
BYTE zPadding8[3];
bool canRemoveBlipsCreatedByAnyScript;
BYTE zPadding9[7];
DWORD flags;
};
Functions
A list of Functions that occur in GTA IV's memory.
/* 0x4581C0 */ unsigned int __cdecl CRC32(char* text,unsigned int mask); // 1.0.2.0
Variables
A list of Variables that occur in GTA IV's memory.
/* 0xF56BC4 */ BYTE AESEncryptionKey[32] // 1.0.2.0
External Links
- GTAForums topic - Documenting GTAIV memory addresses
- GTAForums topic - IV Limits