_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH
Docslocal retval = GetNumberOfReferencesOfScriptWithNameHash(scriptHash)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;Parameters
| Name | Type | Description |
|---|---|---|
scriptHash | Hash | — |
Returns
intReturns an integer value.