gta.terminateScript

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.0

void gta.terminateScript(string scriptName)

The gta.terminateScript function is used to end a game script, specified by script name (immediately stops the script).

Parameters

1) string scriptName The name of the script to terminate.

Return

void This function doesn't return a value.

Notes

  • This does NOT apply to resources! This only stops SCM game scripts (use gta.getActiveScripts to see currently running scripts.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

        gta.getActiveScripts
      gta.scriptCommand
  gta.startNewScript
        gta.terminateScript