Garry's Mod Wiki

Player:GetCount

number Player:GetCount( string type, number minus = 0 )

Description

Gets total count of entities of same class.

Arguments

1 string type
Entity type to get count of.
2 number minus = 0
If specified, it will reduce the counter by this value. Works only serverside.

Returns

1 number count
The returned count.

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 7
Generate Html 3
SaveChanges (1) 11
Render Body 0
Render Sidebar 13