Event
network:peer:join
ServerFired when a peer connects to the server
Signal
"network:peer:join"Arguments
| Type | Name | Description |
|---|---|---|
int | peer_id | Id of the peer that joined |
This signal is only fired on the server.
- The server starts every running resource on the peer after this fires.
Example
util.event.on("network:peer:join", function(peer_id)
core.engine.print("info", "Peer joined:", peer_id)
end)