Lua Events/OnConnectionStateChanged

From PZwiki



Event

OnConnectionStateChanged

Description

When a player is connecting to the server, the connection is going through different stages. This event is triggered for each of these stages of the initial connection.

Parameters

  • String The current state of the connection that has changed.
  • String The reason leading to the state change. It can be null.

Examples

local function OnConnectionStateChanged(state, reason)
	-- Your code here
end

Events.OnConnectionStateChanged.Add(OnConnectionStateChanged)

See also