Garry's Mod Wiki

Player:AddCount

  Player:AddCount( string str, Entity ent )

Description

This function is only available in Sandbox and its derivatives.

Adds an entity to the player's list of entities of the same type. See Player:GetCount to get the current count of entities of an entity type added with this function.

Arguments

1 string str
The type of this Entity.
2 Entity ent
The Entity you want to add to the list.