Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 04B8

Opcode Database

04B8

DescriptionReturns the weapon id, ammo and model from the specified slot.
Parameters (v2)1) Actor handle (Integer) (INT)
2) Integer (INT)
3) (Returned) Weapon ID (Integer) (INT)
4) (Returned) Integer (INT)
5) (Returned) Model (Integer) (MODEL)
Gamessa vc
CategoryActor, Common
Command Name (IV)GET_CHAR_WEAPON_IN_SLOT
San Andreas
sascm.ini04B8=5,get_char_weapon_in_slot %1d% slot %2h% store_weapon_to %3d% ammo_to %4d% model_to %5d%
Example04B8: get_char_weapon_in_slot $PLAYER_ACTOR slot 2 store_weapon_to 380@ ammo_to 381@ model_to 381@
Command NameGET_CHAR_WEAPON_IN_SLOT
Vice City
sascm.ini04B8=5,get_char_weapon_in_slot %1d% slot %2h% store_weapon_to %3d% ammo_to %4d% model_to %5d%
Example04B8: get_char_weapon_in_slot $player_actor slot 4 store_weapon_to $869 ammo_to $852 model_to $870
Command NameGET_CHAR_WEAPON_IN_SLOT

<< 04B7

04B9 >>