WeaponClient

getWeapontypeModel

GET_WEAPONTYPE_MODEL0xF46CDC33180FDA94

The GTA V native GET_WEAPONTYPE_MODEL of the WEAPON namespace, as LS:MP client scripts call it: the global function getWeapontypeModel, in JavaScript and in Lua.

SignatureJavaScript
getWeapontypeModel(weaponHash: Hash): Hash
SignatureLua
getWeapontypeModel(weaponHash: Hash): Hash

Usage

JavaScript
const hash = getWeapontypeModel(weaponHash);
Lua
local hash = getWeapontypeModel(weaponHash)

Parameters

ParameterTypeJavaScriptLua
weaponHashHashnumberinteger

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.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the model of any weapon.

Reference

Namespace
Weapon WEAPON
In the game
Hash GET_WEAPONTYPE_MODEL(Hash weaponHash)
Hash
0xF46CDC33180FDA94

Open in the interactive natives reference