WeaponClient

setWeaponObjectCamoIndex

SET_WEAPON_OBJECT_CAMO_INDEX0x977CA98939E82E4B

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

SignatureJavaScript
setWeaponObjectCamoIndex(weaponObject: Object, p1: number): void
SignatureLua
setWeaponObjectCamoIndex(weaponObject: Object, p1: integer)

Usage

JavaScript
setWeaponObjectCamoIndex(weaponObject, p1);
Lua
setWeaponObjectCamoIndex(weaponObject, p1)

Parameters

ParameterTypeJavaScriptLua
weaponObjectObjectnumberinteger
p1intnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Weapon WEAPON
In the game
void SET_WEAPON_OBJECT_CAMO_INDEX(Object weaponObject, int p1)
Hash
0x977CA98939E82E4B
Introduced
Game build 1103 legacy numbering

Open in the interactive natives reference