The Lab
WEAPON native

_GET_DEFAULT_PED_WEAPON_COLLECTION

returns Hash1 parambuild 1207

Returns the default weapon collection hash for the ped model pedModel.

Signature

C
Hash _GET_DEFAULT_PED_WEAPON_COLLECTION(Hash pedModel); // 0xD42514C182121C23 b1207

Parameters

#NameType
1pedModelHash

Facts

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

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