Native referenceRedMclient

GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH

0x8E34C953364A76DD SCRIPTS
FUNCTION SIGNATURE
int GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH(Hash scriptHash);
Property Value
Native Name GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH
Hash 0x8E34C953364A76DD
Return Type int
Build 1207
API Set client
Parameters scriptHash (Hash)

Description: Gets the number of instances of the specified script is currently running.

Actually returns numRefs - 1. if (program) v3 = rage::scrProgram::GetNumRefs(program) - 1; return v3;

Old name: _GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH

Usage

Lua (Direct):

local result = GetNumberOfThreadsRunningTheScriptWithThisHash(scriptHash)

Lua (Hash):

local result = Citizen.InvokeNative(0x8E34C953364A76DD, scriptHash)
Back to SCRIPTS