resource:stopped
Shared
Fired when a resource has been stopped
Signal
"resource:stopped"Arguments
| Type | Name | Description |
|---|---|---|
string | name | Name 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
util.event.on("resource:stopped", function(name)
core.engine.print("info", "Resource stopped:", name)
end)