Difference between revisions of "Engine.RestartResource"
Jump to navigation
Jump to search
(Created page with "== Function == <syntaxhighlight lang="javascript"> function bool Engine.RestartResource(resourceName); </syntaxhighlight> === Arguments === * resourceName ** The name of th...") |
(No difference)
|
Revision as of 06:54, 12 August 2014
Function
function bool Engine.RestartResource(resourceName);
Arguments
- resourceName
- The name of the resource to restart.
Description
This function will attempt to restart the resource.
Returns
If the resource is currently stopped the function will return false.
Then the function returns if the server was able to start the resource, possible reasons could include scripts containing errors.
Notes
If the resource doesn't exist then an error is thrown.