G.FindMetaTable
From GMod Wiki
Function | |
Syntax |
FindMetaTable( String name ) Where is this used? |
Description: | |
Returns the metatable stored in _R with that name. | |
Returns: | Table |
Part of Library: | Global Functions |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.FindMetaTable]G.FindMetaTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- An alternative to this function is using _R.NameHere.
- If you make your own metatable and want it accessible by this function, use _R.NameHere = TableHere when you've finished defining it.
- List of known metatable names:
Name | Metatable |
---|---|
"NPC" | Npc ![]() |
"Player" | Player ![]() |
"Entity" | Entity ![]() |
"Panel" | Panel ![]() |
"CLuaEmitter" | CLuaEmitter ![]() |
"CLuaParticle" | CLuaParticle ![]() |
"Weapon" | Weapon ![]() |
"CTakeDamageInfo" | CTakeDamageInfo ![]() |
"ISave" | ISave ![]() |
"VMatrix" | VMatrix ![]() |
"Angle" | Angle ![]() |
"IRestore" | IRestore ![]() |
"CSENT_vehicle" | CSENT_vehicle ![]() |
"CRecipientFilter" | CRecipientFilter ![]() |
"Vector" | Vector ![]() |
"CMoveData" | CMoveData ![]() |
"CUserCmd" | CUserCmd ![]() |
"ConVar" | ConVar ![]() |
"CSoundPatch" | CSoundPatch ![]() |
"PhysObj" | Physobj ![]() |
"_LOADLIB" | LoadLib |
"Vehicle" | Vehicle ![]() |
"CEffectData" | CEffectData ![]() |