getPedWeaponTintIndex
GET_PED_WEAPON_TINT_INDEX0x2B9EEDC07BD06B9FThe GTA V native GET_PED_WEAPON_TINT_INDEX of the WEAPON namespace, as LS:MP client scripts call it: the global function getPedWeaponTintIndex, in JavaScript and in Lua.
getPedWeaponTintIndex(ped: Ped, weaponHash: Hash): numbergetPedWeaponTintIndex(ped: Ped, weaponHash: Hash): integerUsage
JavaScript
const result = getPedWeaponTintIndex(ped, weaponHash);Lua
local result = getPedWeaponTintIndex(ped, weaponHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
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, components & tint indexes by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/weapons.json
Reference
- Namespace
- Weapon WEAPON
- In the game
int GET_PED_WEAPON_TINT_INDEX(Ped ped, Hash weaponHash)- Hash
0x2B9EEDC07BD06B9F