_GET_PED_CURRENT_HELD_WEAPON
Returns the hash of the weapon the ped is currently holding.
Signature
Hash _GET_PED_CURRENT_HELD_WEAPON(Ped ped); // 0x8425C5F057012DAB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | _GET_PED_CURRENT_HELD_WEAPON |
|---|---|
| Hash | 0x8425C5F057012DAB |
| Namespace | |
| Returns | Hash |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hash = Citizen.InvokeNative(0x8425C5F057012DAB, -- _GET_PED_CURRENT_HELD_WEAPON
PlayerPedId(), -- Ped ped
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0x8425C5F057012DAB", // _GET_PED_CURRENT_HELD_WEAPON
PlayerPedId(), // Ped ped
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x8425C5F057012DAB, // _GET_PED_CURRENT_HELD_WEAPON
API.PlayerPedId() // Ped ped
);Related WEAPON natives
- _GET_CURRENT_PED_WEAPON_AMMO_TYPE
- _GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_PED_GUN_SPINNING_HASH_FROM_WEAPON_EMOTE_VARIATION
- _GET_PED_HOGTIE_WEAPON
- _GET_PED_WEAPON_IN_SLOT
- _GET_PED_WEAPON_OBJECT
- _GET_PED_WORST_WEAPON
- GET_CURRENT_PED_VEHICLE_WEAPON
- GET_CURRENT_PED_WEAPON
- GET_CURRENT_PED_WEAPON_ENTITY_INDEX
- _GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.