gta.terminateScript

From GTA Connected
(Redirected from Gta.terminateScript)
Jump to navigation Jump to search

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

icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.getActiveScripts
icon-iii.png icon-vc.png icon-sa.png gta.scriptCommand
icon-iv.png gta.startNewScript
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.terminateScript