G.getmetatable
From GMod Wiki
Function | |
Syntax |
getmetatable( Entity name ) Where is this used? |
Description: | |
Returns the metatable of the given entity. | |
Returns: | Table |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.getmetatable]G.getmetatable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Allows you to add a function to a specific meta table |
---|---|
Used on | |
Code | local Player = getmetatable("Player") function Player:BlowUP() -- Do stuff end |
Output | N/A |