Lua Events/OnCoopServerMessage

From PZwiki



Event

OnCoopServerMessage

Description

Triggered when the player receives a server message during a cooperative game.

Parameters

  • String The type of message received from the server. Can be either `ping`, `pong`, `steam-id`, or `server-address`.
  • String The nick of the player who's sending the message.
  • String The Steam identifier of the player who's sending the message.

Examples

local function OnCoopServerMessage(messageType, playerNick, steamId)
	-- Your code here
end

Events.OnCoopServerMessage.Add(OnCoopServerMessage)

See also