Entity.GetVar
From GMod Wiki
| Function | |
| Syntax | Entity:GetVar( Var index, Var default ) | 
| Description: | |
| Returns Entity:GetTable()[index] (or default if Entity:GetTable()[index] is nil) | |
| Returns: | Var | 
| In Object: | Entity | 
| Realm: |  | 
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetVar]Entity.GetVar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Examples
Additional Notes
- Default is optional.
- Default can be any type of data.
- Index can be an Integer or a String .
- The returned value can be any type of data. It depends on what is stored in Entity:GetTable[index]. If a slot by that index doesn't exist in the table, the default value is returned.

 
			
			