Native referenceRedMclient

_GET_DEFAULT_UNARMED_WEAPON_HASH

0x08FF1099ED2E6E21 WEAPON
FUNCTION SIGNATURE
Hash _GET_DEFAULT_UNARMED_WEAPON_HASH(Ped ped);
Property Value
Native Name _GET_DEFAULT_UNARMED_WEAPON_HASH
Hash 0x08FF1099ED2E6E21
Return Type Hash
Build 1207
API Set client
Parameters ped (Ped)

Description: Returns the ped's default unarmed weapon hash as defined in CPedModelInfo (DefaultUnarmedWeapon). Falls back to WEAPON_UNARMED if the ped doesn't have a valid model info pointer, or 0 if the ped doesn't exist.

Usage

Lua (Direct):

local result = GetDefaultUnarmedWeaponHash(ped)

Lua (Hash):

local result = Citizen.InvokeNative(0x08FF1099ED2E6E21, ped)
Back to WEAPON