Tables
Documentation of table-related Synapse Z environment functions
getgenv
table getgenv()
returns exploit global environment
getrenv
table getrenv()
returns roblox global environment
getreg
table getreg()
returns the current state registry table
getgc
table getgc()
returns the current state gc table
filtergc
table filtergc(type: string, special_filter: table?, return_one: bool?)
returns the current state gc table with filtered objects, special_filter can be used with types:
table
Field | Type | Description |
---|---|---|
Keys | table<any> | key indexes that must match all table key indexes |
Values | table<any> | values that must match all table values |
KeyValuePairs | table<any:any> | key indexes and values that must match all table key indexes and values |
Metatable | table | table must have the specified metatable |
function
Field | Type | Description |
---|---|---|
Name | string | function name must match the specified name |
Constants | table<any> | constants that must match all function constants |
Upvalues | table<any> | upvalues that must match all function upvalues |
IgnoreSyn | bool | ignore synapse functions |
Proto | function | proto that must match the function proto |
Environment | table | environment that the function must match |
Hash | string | hash that the function must match |
StartLine | number | function starting line that the function must match (-1 to match c functions) |
userdata
Field | Type | Description |
---|---|---|
Tag | number | the userdata tag that the userdata must match (see getuserdatatag for info) |
Metatable | table | userdata must have the specified metatable |
getrawmetatable
table getrawmetatable(object: any)
returns the metatable of the specified object, bypassing __metatable
getrawmetatable
table getrawmetatable(object: any, metatable: <table/nil>)
sets the metatable of the specified object, bypassing __metatable
setreadonly
void setreadonly(table: table, readonly: bool)
sets the table readonly flag
isreadonly
bool isreadonly(table: table)
returns whenever the table is readonly or not
setuntouched
void setuntouched(table: table, untouched: bool)
sets the table untouched (safeenv) flag
isuntouched
bool isuntouched(table: table)
returns whenever the table is untouched (safeenv) or not
makereadonly
void makereadonly(table: table)
sets the table readonly flag to true
makewriteable
void makewriteable(table: table)
sets the table readonly flag to false
newtable
table newtable(narray: number, nhash: number)
creates a new table with the specified sizes, narray must be >= 33, nhash must be >= 17