M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
resourceresource|stringThe 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)

See also