The Lab
WEAPON native

_GET_PED_CURRENT_HELD_WEAPON

returns Hash1 parambuild 1207

Returns the hash of the weapon the ped is currently holding.

Signature

C
Hash _GET_PED_CURRENT_HELD_WEAPON(Ped ped); // 0x8425C5F057012DAB b1207

Parameters

#NameType
1pedPed

Facts

Facts about _GET_PED_CURRENT_HELD_WEAPON
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.

Lua
local hash = Citizen.InvokeNative(0x8425C5F057012DAB, -- _GET_PED_CURRENT_HELD_WEAPON
  PlayerPedId(), -- Ped ped
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x8425C5F057012DAB", // _GET_PED_CURRENT_HELD_WEAPON
  PlayerPedId(), // Ped ped
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x8425C5F057012DAB, // _GET_PED_CURRENT_HELD_WEAPON
  API.PlayerPedId() // Ped ped
);
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.