AcediaDocumentation

getscriptfromthread

Finds the script associated with a thread or its formatted thread string.

Returns nil for executor threads, unrecognized strings, or threads without a reachable script. The alias getscriptthread has the same direction: it returns a script from a thread.

getscriptfromthread(target: thread | string): LuaSourceContainer?

Parameters

ParameterTypeDescription
targetthread | stringThread, or the string produced by tostring(thread).

Aliases: getscriptthread.

On this page