_GET_WEAPONTYPE_SLOT
Returns the inventory slot hash used by the weapon weaponHash.
Signature
Hash _GET_WEAPONTYPE_SLOT(Hash weaponHash); // 0x46F032B8DDF46CDE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weaponHash | Hash |
Facts
| Name | _GET_WEAPONTYPE_SLOT |
|---|---|
| Hash | 0x46F032B8DDF46CDE |
| 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(0x46F032B8DDF46CDE, -- _GET_WEAPONTYPE_SLOT
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0x46F032B8DDF46CDE", // _GET_WEAPONTYPE_SLOT
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x46F032B8DDF46CDE, // _GET_WEAPONTYPE_SLOT
(uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);Related WEAPON natives
- _GET_WEAPONTYPE_MODEL
- _GET_PED_WEAPON_IN_SLOT
- _GET_WEAPON_ATTACH_POINT
- _GET_WEAPON_COMPONENT_TYPE_MODEL
- _GET_WEAPON_DAMAGE
- _GET_WEAPON_DIRT
- _GET_WEAPON_EMOTE_VARIATION
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_FROM_HORSE_HOLSTER
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- _GET_WEAPON_HAS_MULTIPLE_AMMO_TYPES
- _GET_WEAPON_NAME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.