GTAG - Modding - Opcode Database - 01B1
Opcode Database
01B1
| Description | Gives the player the specified weapon with the specified ammunition. The weapon model must be loaded first, else a crash will occur. This opcode is unsupported in San Andreas. Use 01B0 and the players actor handle instead. |
|---|---|
| Parameters (v2) | 1) Player handle (Integer) (INT) 2) Weapon ID (Integer) (INT) 3) Integer (INT) |
| Games | |
| Category | Common, Player, Weapon |
| Vice City | |
| sascm.ini | 01b1=3,give_player %1d% weapon %2c% ammo %3d% ;; Load the weapon model before using this |
| Example | 01B1: give_player $player_char weapon 17 ammo 68 // Load the weapon model before using this |
| Command Name | GIVE_WEAPON_TO_PLAYER |
| GTA III | |
| gtascm.ini | 01b1=3,give_player %1d% weapon %2c% ammo %3d% |
| Example | 01B1: give_player $PLAYER_CHAR weapon 4 ammo 20 |
| Command Name | GIVE_WEAPON_TO_PLAYER |

