Event

resource:stop

Shared

Fired when a resource has been stopped

Signal

"resource:stop"

Arguments

TypeNameDescription
stringnameName of the resource that was stopped

On the server, stopping a resource also notifies all connected clients.

  • Clients will automatically stop their local copy of the resource after this fires on the server.
  • Use this to clean up any state tied to the stopped resource.

Example

React to a resource stopping
util.event.on("resource:stop", function(name)
    core.engine.print("info", "Resource stopped:", name)
end)

On this page