Engine.RestartResource
Jump to navigation
Jump to search
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.