ped.giveWeapon

From GTA Connected
Revision as of 22:58, 2 October 2019 by Mex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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