G.collectgarbage

From GMod Wiki

Jump to: navigation, search
Function
Syntax collectgarbage( )
Where is this used?
Description:
Forces a garbage collection.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.collectgarbage]G.collectgarbage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionCalls the garbage collector every ten seconds.
Used onNewerShared.png
Code
timer.Simple( 10, collectgarbage )
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox