Garry's Mod Wiki

Revision Difference

Player:GetCount#528218

<function name="GetCount" parent="Player" type="classfunc"> <description>Gets total count of entities of same class.</description> <realm>Shared</realm> <args> <arg name="type" type="string">Entity type to get count of.</arg> <arg name="minus" type="number" default="0">If specified, it will reduce the counter by this value. Works only serverside.</arg> </args> <rets>⤶ <ret name="count" type="number">The returned count.</ret>⤶ </rets>⤶ </function>