restartResource
Shared
Asks to stop and start again a running resource. It happens on the next resource pulse, not during the call, and the resource keeps its place in the start order.
bool restartResource(resource|string resource)
Parameters
| Name | Type | Description |
|---|---|---|
| resource | resource|string | The resource, or its name. |
Returns
true if the restart was queued, false if the resource does not exist or is not running.
Example
addCommandHandler("restartmap", function()
restartResource("race-map")
end)