Garry's Mod Wiki

Player:GetWeapons

table Player:GetWeapons()

Description

Returns a table of the player's weapons.

Returns

1 table
All the weapons the player currently has.

Example

Prints how many weapons the player has.

print( #Entity(1):GetWeapons() )
Output: The number of weapons the player has (e.g. 5).

Page Links


Special Pages


Wikis

?

Render Time: 23ms

Session 0
DB GetPage 3
Generate Html 0
SaveChanges 11
Render Body 0
Render Sidebar 7