Entity. tostring
From GMod Wiki
| Function | |
| Syntax | Entity:__tostring( ) | 
| Description: | |
| Returns information about an entity as string. This function gets called when you use G.tostring on an entity. | |
| Returns: | String | 
| In Object: | Entity | 
| Realm: |  | 
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity. tostring]Entity. tostring [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Examples
| Description | Prints first player's name to console. | 
|---|---|
| Used on |  | 
| Code | print(Entity(1):__tostring()) | 
| Output | Player [1][First player's name here] | 
Additional Notes
- Equals passing entity as string.
 
			
			