Player/GetWeapons

From Garry's Mod
Revision as of 23:38, 29 May 2014 by RedXVIII (Talk | contribs)
Jump to: navigation, search
 Player:GetWeapons( )

Contents

Description

Returns a table of the player's weapons. Read-only.

Returns

table

All the weapons the player currently has.

Examples

Example

Prints how many weapons the player has.

print(table.Count(Player(1):GetWeapons()))

Output:

The number of weapons the player has (e.g. 5).
Personal tools
Navigation