Entity:GetName
Description
Returns the "targetname" of this entity, typically used in map making and scripting to uniquely identify and target (hence 'targetname') an entity or a group of entities.
For players, this function is overwritten by Player:GetName, which returns the player's nick name, not the target name.
Garry's Mod
Rust
Steamworks
Wiki Help