WeaponClient

getWeaponComponentTypeModel

GET_WEAPON_COMPONENT_TYPE_MODEL0x0DB57B41EC1DB083

The 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.

SignatureJavaScript
getWeaponComponentTypeModel(componentHash: Hash): Hash
SignatureLua
getWeaponComponentTypeModel(componentHash: Hash): Hash

Usage

JavaScript
const hash = getWeaponComponentTypeModel(componentHash);
Lua
local hash = getWeaponComponentTypeModel(componentHash)

Parameters

ParameterTypeJavaScriptLua
componentHashHashnumberinteger

Returns

Hash JavaScript number, Lua integer

A 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

Open in the interactive natives reference