getPedWeaponCamoIndex
GET_PED_WEAPON_CAMO_INDEX0xA2C9AC24B4061285The GTA V native GET_PED_WEAPON_CAMO_INDEX of the WEAPON namespace, as LS:MP client scripts call it: the global function getPedWeaponCamoIndex, in JavaScript and in Lua.
getPedWeaponCamoIndex(ped: Ped, weaponHash: Hash): numbergetPedWeaponCamoIndex(ped: Ped, weaponHash: Hash): integerUsage
JavaScript
const result = getPedWeaponCamoIndex(ped, weaponHash);Lua
local result = getPedWeaponCamoIndex(ped, weaponHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
weaponHash | Hash | number | integer |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Weapon WEAPON
- In the game
int GET_PED_WEAPON_CAMO_INDEX(Ped ped, Hash weaponHash)- Hash
0xA2C9AC24B4061285- Introduced
- Game build 1103 legacy numbering