C++ get the name of the player that we got the target on

Wut

Well-known member
Joined
Mar 1, 2013
Messages
338
Reaction score
1
I need to get the name of the player, which i got my green triangle on, is there any memory adress for it?
Or maybe his id?

Target
0xB6F3B8 = Pointer to Target.
+0x79C [dword] = Targetted CPed:
0 = no cped targetted
+0xC0 = Pointer to last object (ped, car, maybe others) you collided with

Is there any offset of this ?
 

BBB

Active member
Joined
Apr 5, 2013
Messages
62
Reaction score
1
(I really don't know)
I don't think that u will find an offset for this

but this might work by scanning some player structs in samp memory
then u can get id/name from CPed etc
but I don't know how either :catface: :catface::catface:
 

0x_

Wtf I'm not new....
Administrator
Joined
Feb 18, 2013
Messages
1,118
Reaction score
166
You need to Reverse some of the SA:MP Structures, they contain a reference to the GTA:SA Ped Handle.
 
Top