Miscellaneous

Documentation of miscellaneous Synapse Z environment functions

identifyexecutor

(string, string) identifyexecutor()

returns Synapse Z and current version

setclipboard

void setclipboard(content: string)

sets the clipboard content

getmemorystats

table<string:number> getmemorystats()

gets memory usage in MB for each object type

getfflag

any getfflag(name: string)

gets the specified fflag by name, errors if doesnt exist

setfflag

void setfflag(name: string, value: any)

sets the specified fflag by name, errors if doesnt exist

getfpscap

number getfpscap()

gets current fps cap

setfpscap

void setfpscap(fpscap: number)

sets current fps cap

queue_on_teleport

void queue_on_teleport(source: string)

queues the source to be executed on teleport

clear_teleport_queue

void clear_teleport_queue()

clears the teleport queue

getrendersteppedlist

table<function/table> getrendersteppedlist(extended_information: bool?)

returns a list of all functions binded to render step using RunService:BindToRenderStep, if extended_information is true then table with this prototype is returned:

FieldTypeDescription
Prioritynumberthe priority of the callback on render step
Namestringthe name of the render step callback
Threadthreadthe thread that the render step was binded in
Functionfunctionthe render step callback

getsimulationradius

number getsimulationradius()

returns local player simulation radius

setsimulationradius

void getsimulationradius(radius: number)

sets local player simulation radius

messagebox

number messagebox(text: string, caption: string, type: number?)

shows user a message box with the specified text, caption, type, see windows docs

setwindowtitle

void setwindowtitle(title: string)

sets roblox window title

issynapsethread

bool issynapsethread(thread: thread)

returns whenever the specified thread is synapse thread or not

getthreads

table<thread> getthreads()

returns a list of all threads

makeref

number makeref(object: any)

creates a reference to the specified object in luau registry, further obtainable using getref

getref

any getref(ref: number)

returns the object at the specified reference id in registry

getcstring

string getcstring(string: string)

returns a c string format of the specified string (returns trailing \0)

comparestring

bool comparestring(string1: string, string2: string)

compares the specified strings in c (bypassing trailing \0)

getuserdatatag

number getuserdatatag(target: userdata)

returns internal userdata tag (used for uniquely identifying different types of userdata)