mod sa stuff

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
hi,
i looked into this project and i'm testing some stuff but i have some problem here...
I need the offset of "int iGlobalMarkerLocation[3];"  in the "stRemotePlayerData" struct, i tried calcule that manually but there is some error  :bawww:

please help
sincererely meee  :stoned:
 

T3KTONIT

Well-known member
Joined
Sep 2, 2013
Messages
308
Reaction score
5
democrazy link said:
hi,
i looked into this project and i'm testing some stuff but i have some problem here...
I need the offset of "int iGlobalMarkerLocation[3];"  in the "stRemotePlayerData" struct, i tried calcule that manually but there is some error  :bawww:

please help
sincererely meee  :stoned:

pm me the structure/or post it here and i will give you the offset.
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
there must be some mistake i guess..

C++:
struct stRemotePlayerData
{
#pragma pack( 1 )
	uint16_t				sPlayerID;					// 0
	uint16_t				sVehicleID;					// 2
	uint8_t					byteTeamID;					// 4
	uint8_t					bytePlayerState;			// 5
	uint8_t					byteSeatID;					// 6
	uint32_t				ulUnk0;						// 7
	int						iPassengerDriveBy;			// 11
	struct stSAMPVehicle	*pSAMP_Vehicle;				// 15
	struct stSAMPPed		*pSAMP_Actor;				// 19
	uint8_t					byteUnk1[40];				// 23
	float					fOnFootPos[3];				// 63
	float					fOnFootMoveSpeed[3];		// 75
	float					fVehiclePosition[3];		// 87
	float					fVehicleMoveSpeed[3];		// 99
	float					fVehicleRoll[4];			// 111
	int						iShowNameTag;				// 127
	int						iHasJetPack;				// 131
	uint8_t					byteSpecialAction;			// 135
	struct stTrailerData	trailerData;				// 136	+54
	struct stPassengerData	passengerData;				// 190  +38
	struct stAimData		aimData;					// 228  +32
	struct stInCarData		inCarData;					// 260  +77
	struct stOnFootData		onFootData;					// 337  +82
	uint8_t					byteUnk2;					// 419
	uint32_t				dwLastStreamedInTick; // is 0 when currently streamed in     420
	uint32_t				dwTick;						// 424
	uint32_t				ulUnk3;						// 428
	float					fActorHealth;				// 432
	float					fActorArmor;				// 436
	int						iUnk4;						// 440
	int						iAFKState;					// 444
	struct stHeadSync		headSyncData;				// 448 +20
	int						iGlobalMarkerLoaded;		// 468
	int						iGlobalMarkerLocation[3];	// 472
	uint32_t				ulGlobalMarker_GTAID;		// 484
};
 

T3KTONIT

Well-known member
Joined
Sep 2, 2013
Messages
308
Reaction score
5
hmmm. you can do this to get the offset :
PHP:
DWORD offset;
offset =(DWORD)&g_Players->pRemotePlayer[ID]->pPlayerData->iGlobalMarkerLocation[0] - (DWORD)&g_Players->pRemotePlayer[ID]->pPlayerData->byteTeamID;
you can also do this : to get the address of iGlobalMarkerLocation :
PHP:
DWORD addr = (DWORD)&g_Players->pRemotePlayer[ID]->pPlayerData->iGlobalMarkerLocation[0];

then you can use it in cheat engine and see if you have everything all right.
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
T3K link said:
hmmm. you can do this to get the offset :
PHP:
DWORD offset;
offset = (DWORD)g_Players->pRemotePlayer[ID]->pPlayerData->&iGlobalMarkerLocation[0] - (DWORD)g_Players->pRemotePlayer[ID]->pPlayerData->&byteTeamID;
you can also do this : to get the address of iGlobalMarkerLocation :
PHP:
DWORD addr = (DWORD)g_Players->pRemotePlayer[ID]->pPlayerData->&iGlobalMarkerLocation[0];

then you can use it in cheat engine and see if you have everything all right.

can u do this? i can't compile mod sa atm...
 
Top