_GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
Returns the weapon of the group weaponGroup in the default weapon collection weaponCollection.
Signature
Hash _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION(Hash weaponCollection, Hash weaponGroup); // 0x9EEFD670F10656D7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weaponCollection | Hash |
| 2 | weaponGroup | Hash |
Facts
| 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.
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)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)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
);Related WEAPON natives
- _GET_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_OBJECT_FROM_PED
- _GET_WEAPON_FROM_HORSE_HOLSTER
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- _GET_PED_GUN_SPINNING_HASH_FROM_WEAPON_EMOTE_VARIATION
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- _GET_WEAPON_TYPE_FROM_AMMO_TYPE
- GET_PED_AMMO_TYPE_FROM_WEAPON
- _GET_BEST_PED_WEAPON_IN_GROUP
- _GET_BEST_PED_WEAPON_IN_INVENTORY
- _GET_CURRENT_PED_WEAPON_AMMO_TYPE
- _GET_DEFAULT_UNARMED_WEAPON_HASH
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.