Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 01B1

Opcode Database

01B1

DescriptionGives 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)
Gamesvc iii
CategoryCommon, Player, Weapon
Vice City
sascm.ini01b1=3,give_player %1d% weapon %2c% ammo %3d% ;; Load the weapon model before using this
Example01B1: give_player $player_char weapon 17 ammo 68 // Load the weapon model before using this
Command NameGIVE_WEAPON_TO_PLAYER
GTA III
gtascm.ini01b1=3,give_player %1d% weapon %2c% ammo %3d%
Example01B1: give_player $PLAYER_CHAR weapon 4 ammo 20
Command NameGIVE_WEAPON_TO_PLAYER

<< 01B0

01B2 >>