ped.giveWeapon: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = giveWeapon
|side = client
|type = method
|type = method
|class = Ped
|class = Ped
|name = giveWeapon
|games = iii vc sa iv
|parameters = int weapon, int ammunition, [ bool setAsCurrent = false ]
|desc = give a weapon to the ped
|parameter1 = int weapon The weapon ID to give to the ped.
|arg1 = int weapon The weapon ID to give to the ped.
|parameter2 = int ammunition The amount of ammunition for the weapon.
|arg2 = int ammunition The amount of ammunition for the weapon.
|parameter3 = bool setAsCurrent optional false Whether to change the current weapon slot for the ped to the specified weapon's slot.
|arg3 = [bool setAsCurrent = false] Whether to change the current weapon slot for the ped to the specified weapon's slot.
|usage = give a weapon to the ped
|return = void
|return1 = void
|freturn = void
|returnFail1 = void
}}
}}
6,834

edits

Navigation menu