From Garry's Mod
Revision as of 16:17, 4 September 2019 by Robotboy655
Returns a table of the player's weapons.
All the weapons the player currently has.
Prints how many weapons the player has.
print( table.Count( Entity(1):GetWeapons() ) )
The number of weapons the player has (e.g. 5).