CPed by SAMP Player ID

AWRage

New member
Joined
Mar 26, 2016
Messages
4
Reaction score
0
How i can get CPed using SAMP Player ID? I use game_api and SAMPFUNCS_api in my project.

Code:
CPed *Ped = GAME->GetPools()->GetPed( ????????? );
or
CPed *Ped = GAME->GetPools()->GetPedFromRef( ???? ); // what is 'ref'?
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
'ref' i think it's the actor script id.
In SF API you can use 'GetActorHandleFromSAMPPlayerID' and cast to CPed.
 
Top