get current weapon id

DutchGay101

Active member
Joined
Sep 15, 2023
Messages
34
Reaction score
3
hi, im trying to get the localplayer current weapon id through offsets i found in https://gtamods.com/wiki/Memory_Addresses_(SA) but it doesnt seem to be working

Code:
WORD GetCurrentWeaponID(DWORD PED)
{
    if (!PED)
        return;

    WORD currentWEPID = *(WORD*)((uintptr_t)PED + 0x740);

    return currentWEPID;
}
 
Top