WeaponClient

getWeaponObjectTintIndex

GET_WEAPON_OBJECT_TINT_INDEX0xCD183314F7CD2E57

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

SignatureJavaScript
getWeaponObjectTintIndex(weapon: Object): number
SignatureLua
getWeaponObjectTintIndex(weapon: Object): integer

Usage

JavaScript
const result = getWeaponObjectTintIndex(weapon);
Lua
local result = getWeaponObjectTintIndex(weapon)

Parameters

ParameterTypeJavaScriptLua
weaponObjectnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Weapon WEAPON
In the game
int GET_WEAPON_OBJECT_TINT_INDEX(Object weapon)
Hash
0xCD183314F7CD2E57

Open in the interactive natives reference