Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0491

Opcode Database

0491

DescriptionReturns true if the character has the specified weapon.
Parameters (v2)1) Actor handle (Integer) (INT)
2) Weapon ID (Integer) (INT)
Gamessa
CategoryActor, Conditional, Weapon
Command Name (IV)HAS_CHAR_GOT_WEAPON
San Andreas
sascm.ini0491=2, has_char_got_weapon %1d% weapon %2d%
Example0491: has_char_got_weapon $PLAYER_ACTOR weapon 46
Command NameHAS_CHAR_GOT_WEAPON

<< 0490

0493 >>