~/forever/addon-api/function/CreateSecureDelegate
CreateSecureDelegate
documented function · FrameScript
CreateSecureDelegate(luaFunction, options?) : secureDelegateFunctionCreates a secure delegate closure for a Lua function. The delegate invokes the original function in a protected call context with secure execution taint, and supports passing and returning values directly.
──ARGUMENTS
- luaFunction
- LuaValueReference (The Lua function to invoke through the secure delegate.)
- options
- SecureDelegateOptions, optional (Optional settings controlling secure delegate behavior. If omitted, default options are used.)
──RETURNS
- secureDelegateFunction
- LuaValueReference (A secure delegate function that calls through to the original Lua function.)
──DETAILS
- Secure Hooks Allowed
- false
- Has Restrictions
- true
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.