The Lab
WEAPON native

_GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION

returns Hash2 paramsbuild 1207

Returns the weapon of the group weaponGroup in the default weapon collection weaponCollection.

Signature

C
Hash _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION(Hash weaponCollection, Hash weaponGroup); // 0x9EEFD670F10656D7 b1207

Parameters

#NameType
1weaponCollectionHash
2weaponGroupHash

Facts

Facts about _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
Name
_GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
Hash
0x9EEFD670F10656D7
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(0x9EEFD670F10656D7, -- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponCollection
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponGroup
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x9EEFD670F10656D7", // _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponCollection
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponGroup
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x9EEFD670F10656D7, // _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
  (uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponCollection
  (uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponGroup
);
All WEAPON natives

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