The Lab
WEAPON native

_GET_PED_WORST_WEAPON

returns Hash4 paramsbuild 1207

Returns the hash of the weakest weapon the ped has.

Signature

C
Hash _GET_PED_WORST_WEAPON(Ped ped, BOOL p1, BOOL p2, BOOL p3); // 0xDA37A053C1522F5D b1207

Parameters

#NameType
1pedPed
2p1BOOL
3p2BOOL
4p3BOOL

Facts

Facts about _GET_PED_WORST_WEAPON
Name
_GET_PED_WORST_WEAPON
Hash
0xDA37A053C1522F5D
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(0xDA37A053C1522F5D, -- _GET_PED_WORST_WEAPON
  PlayerPedId(), -- Ped ped
  false, -- BOOL p1
  false, -- BOOL p2
  false, -- BOOL p3
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xDA37A053C1522F5D", // _GET_PED_WORST_WEAPON
  PlayerPedId(), // Ped ped
  false, // BOOL p1
  false, // BOOL p2
  false, // BOOL p3
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xDA37A053C1522F5D, // _GET_PED_WORST_WEAPON
  API.PlayerPedId(), // Ped ped
  false, // BOOL p1
  false, // BOOL p2
  false // BOOL p3
);
All WEAPON natives

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