run_time_permissions
LLEvents:on("run_time_permissions", function(PermissionFlags: number) -- ...end)Scripts need permission from either the owner or the avatar they wish to act on before they may perform certain functions, such as debiting money from their owners account, triggering an animation on an avatar, or capturing control inputs. The llRequestPermissions library function is used to request these permissions and the various permissions integer constants can be supplied.
The integer returned to this event handler contains the current set of permissions flags, so if permissions equal 0 then no permissions are set.
Parameters
-
PermissionFlags(number)
Examples
Section titled “Examples”Add example usage here showing how to handle the run_time_permissions event in SLua/Luau.
Add additional notes, caveats, or tips specific to using this event in SLua/Luau.
See Also
Section titled “See Also”- Related events and functions can be linked here
- LSL equivalent: run_time_permissions