Environment

SimpleAdmin uses the Environment dependency to share data throughout the system. It allows for easy access to all of the dependencies and global variables while also promoting cleaner code. There is a drawback to this, though. We use getfenv and setfenv to append the environment throughout the dependencies. Because of this, we are excluded from LuaU optimizations like FastCall, etc...

AddCustomProperties

<Table> Environment.AddCustomProperties(<Instance> Inst, <Table> Props)

Returns a wrapper for Inst with the custom properties defined in Props appended to it.

Apply

<Function> Environment.Apply(<Function> Func, <Table> Custom)

Appends the default SimpleAdmin environment to function Func and will also append any properties defined in Custom.

Last updated

Was this helpful?