Event

peer:resource:started

Server

Fired when a connected peer has finished starting a resource

Signal

"peer:resource:started"

Arguments

TypeNameDescription
intpeer_idId of the peer that started the resource
stringnameName of the resource the peer started

This signal is only fired on the server.

  • It is fired once per peer after that peer has loaded the resource the server started.

Example

React to a peer starting a resource
util.event.on("peer:resource:started", function(peer_id, name)
    core.engine.print("info", "Peer " .. peer_id .. " started:", name)
end)

On this page