getthreadidentity
Gets the current thread's identity level.
Syntax
getthreadidentity() -> numberReturns
| Type | Description |
|---|---|
number | The current identity level |
Description
getthreadidentity returns the identity level of the current thread. Higher identity levels have access to more restricted APIs.
Example
local identity = getthreadidentity()
print("Current identity:", identity)Related Functions
setthreadidentity- Set the identity level
Aliases
getidentitygetthreadcontext