Yuari
Documentation
Docs/Miscellaneous/getthreadidentity

getthreadidentity

Returns the current thread identity.

Syntax

getthreadidentity() -> number

Parameters

This function takes no parameters.

Returns

TypeDescription
numberThe current thread identity

Description

getthreadidentity is part of the Miscellaneous library. Miscellaneous helpers cover module identity, scheduler settings, teleport queueing and other process-level utilities.

The call is read-only: it resolves the current value when invoked and does not change the underlying state.

The aliases getidentity(), getthreadcontext(), get_thread_identity() resolve to the same implementation.

Example

print(getthreadidentity(), getidentity(), getthreadcontext())

Notes

  • Aliases: getidentity(), getthreadcontext(), get_thread_identity().
  • Some settings affect the module globally rather than the current script.