Script::getNumberOfInstancesOfStreamedScript

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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

Actually returns numInstances - 1.
if (scriptPtr)
v3 = GetNumberOfInstancesOfScript(scriptPtr) - 1;
return v3;

Syntax

mp.game.script.getNumberOfInstancesOfStreamedScript(scriptHash);

Required Arguments

  • scriptHash: Model hash or name

Return value

  • int

Example

// todo

See also

Template:Script s function c