ped.giveWeapon
Jump to navigation
Jump to search
giveWeapon
Signature: void giveWeapon(int weapon, int ammunition, [ bool setAsCurrent = false ])
Usage: give a weapon to the ped
Parameters
- int weapon The weapon ID to give to the ped.
- int ammunition The amount of ammunition for the weapon.
- bool setAsCurrent optional false Whether to change the current weapon slot for the ped to the specified weapon's slot.
Return
void
On failure: void