getfenv workaround for functions
π Luaβ’Updated 2 days agoβ’0 views
You can't getfenv a function directly - the known trick is getfenv(Vector(0)/1) to grab the escaped env, then setfenv your function to it (used for sandbox escaβ¦
Can you getfenv on a function / escape sandbox env
You can't getfenv a function directly - the known trick is getfenv(Vector(0)/1) to grab the escaped env, then setfenv your function to it (used for sandbox escapes).