WeaponClient

getWeaponTintCount

GET_WEAPON_TINT_COUNT0x5DCF6C5CAB2E9BF7

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

SignatureJavaScript
getWeaponTintCount(weaponHash: Hash): number
SignatureLua
getWeaponTintCount(weaponHash: Hash): integer

Usage

JavaScript
const result = getWeaponTintCount(weaponHash);
Lua
local result = getWeaponTintCount(weaponHash)

Parameters

ParameterTypeJavaScriptLua
weaponHashHashnumberinteger

Returns

int JavaScript number, Lua integer

Notes

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

Reference

Namespace
Weapon WEAPON
In the game
int GET_WEAPON_TINT_COUNT(Hash weaponHash)
Hash
0x5DCF6C5CAB2E9BF7

Open in the interactive natives reference