Weapon::getPedTintIndex
JavaScript
Gets given weapon tint index
Required Params
- handle number
- weaponhash number
Syntax
mp.game.weapon.getPedTintIndex(handle, weaponhash);
Example
Client-Side
mp.players.local.giveWeapon(mp.game.joaat("WEAPON_PISTOL"), 1000, true);
mp.game.weapon.setPedTintIndex(mp.players.local.handle, mp.game.joaat("WEAPON_PISTOL"), 1);
const weaponTint = mp.game.weapon.getPedTintIndex(mp.players.local.handle, mp.game.joaat("WEAPON_PISTOL"));
mp.console.logInfo(`Weapon tint index for player's weapon_pistol is ${weaponTint}`); //1