Aliasy
get_gc_objects
Argumenty
boolean
Optional boolean. When true, live tables are included in addition to functions and userdata-like objects.
Zwroty
table
Array table containing matching live objects, plus live tables when includeTables is true.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns an array table of live Luau garbage-collected objects visible to the API. Functions and userdata-like objects are included by default. Tables are included only when includeTables is true. get_gc_objects is an alias.
getgc(includeTables?: boolean): table
get_gc_objectslocal objects = getgc()
print(type(objects))
local withTables = getgc(true)
print(type(withTables))
local aliasResult = get_gc_objects()
print(type(aliasResult))