Player.SetActiveWeapon
From GMod Wiki
| Function | |
| Syntax | Player:SetActiveWeapon( Weapon ) |
| Description: | |
| Changes a player's current weapon. | |
| Returns: | nil |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SetActiveWeapon]Player.SetActiveWeapon [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Changes a player's current weapon to the first one found.. |
|---|---|
| Used on | |
| Code | ply:SetActiveWeapon(ply:GetWeapons()[1]) |
| Output | N/A |