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

FieldTypeDescription
Keystable<any>key indexes that must match all table key indexes
Valuestable<any>values that must match all table values
KeyValuePairstable<any:any>key indexes and values that must match all table key indexes and values
Metatabletabletable must have the specified metatable

function

FieldTypeDescription
Namestringfunction name must match the specified name
Constantstable<any>constants that must match all function constants
Upvaluestable<any>upvalues that must match all function upvalues
IgnoreSynboolignore synapse functions
Protofunctionproto that must match the function proto
Environmenttableenvironment that the function must match
Hashstringhash that the function must match
StartLinenumberfunction starting line that the function must match (-1 to match c functions)

userdata

FieldTypeDescription
Tagnumberthe userdata tag that the userdata must match (see getuserdatatag for info)
Metatabletableuserdata 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