Volt

getthreadidentity

Gets the current thread's identity level.

Syntax

getthreadidentity() -> number

Returns

TypeDescription
numberThe 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)

Aliases

  • getidentity
  • getthreadcontext

On this page