Thanks.supahdupahnubah said:Iterate thru Ped structure and check whenever the first int\dword in the each block is more than 0, then ++ your variable and you're done
0xB7CD98 - Player pointer, direct offset to the ped pool start (CPed)
0xB74498 - CPeds maximum number (normally 140)
0xB74490 - Contains a pointer to a main struct below
CPed block size = 0x7C4 bytes.
Src : https://www.gtamodding.com/wiki/Memory_Addresses_(SA)#Pedestrians
springfield said:samp.dll + 0x174210 = NumOfPedSlotsUsed - 1(your ped) = PedSlotsUsed.
supahdupahnubah said:Guess this is the most easiest way to just get a variable in case you wont work with peds