getWeaponTintCount
GET_WEAPON_TINT_COUNT0x5DCF6C5CAB2E9BF7The GTA V native GET_WEAPON_TINT_COUNT of the WEAPON namespace, as LS:MP client scripts call it: the global function getWeaponTintCount, in JavaScript and in Lua.
getWeaponTintCount(weaponHash: Hash): numbergetWeaponTintCount(weaponHash: Hash): integerUsage
JavaScript
const result = getWeaponTintCount(weaponHash);Lua
local result = getWeaponTintCount(weaponHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weaponHash | Hash | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Full list of weapons by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/weapons.json
Reference
- Namespace
- Weapon WEAPON
- In the game
int GET_WEAPON_TINT_COUNT(Hash weaponHash)- Hash
0x5DCF6C5CAB2E9BF7