ScriptClient

isThreadActive

IS_THREAD_ACTIVE0x46E9AE36D8FA6417

The GTA V native IS_THREAD_ACTIVE of the SCRIPT namespace, as LS:MP client scripts call it: the global function isThreadActive, in JavaScript and in Lua.

SignatureJavaScript
isThreadActive(threadId: number): boolean
SignatureLua
isThreadActive(threadId: integer): boolean

Usage

JavaScript
const result = isThreadActive(threadId);
Lua
local result = isThreadActive(threadId)

Parameters

ParameterTypeJavaScriptLua
threadIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Script SCRIPT
In the game
BOOL IS_THREAD_ACTIVE(int threadId)
Hash
0x46E9AE36D8FA6417

Open in the interactive natives reference