getWeaponComponentTypeModel
GET_WEAPON_COMPONENT_TYPE_MODEL0x0DB57B41EC1DB083The GTA V native GET_WEAPON_COMPONENT_TYPE_MODEL of the WEAPON namespace, as LS:MP client scripts call it: the global function getWeaponComponentTypeModel, in JavaScript and in Lua.
getWeaponComponentTypeModel(componentHash: Hash): HashgetWeaponComponentTypeModel(componentHash: Hash): HashUsage
JavaScript
const hash = getWeaponComponentTypeModel(componentHash);Lua
local hash = getWeaponComponentTypeModel(componentHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
componentHash | Hash | number | integer |
Returns
Hash JavaScript number, Lua integerA game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.
Reference
- Namespace
- Weapon WEAPON
- In the game
Hash GET_WEAPON_COMPONENT_TYPE_MODEL(Hash componentHash)- Hash
0x0DB57B41EC1DB083