Lua Events/OnAdminMessage

From PZwiki
< Lua Events
Revision as of 22:35, 13 June 2023 by Faalagorn (talk | contribs) (Faalagorn moved page Lua Events/OnAdminMessage to Lua Events/OnAdminMessage: Avoid Modding: prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Event

OnAdminMessage

Description

Triggered when a chat message from the server admin is being sent.

Parameters

  • String The text of the message being received from the admin.
  • Integer The x coordinate where to display the message.
  • Integer The y coordinate where to display the message.
  • Integer The z coordinate where to display the message.

Examples

local function OnAdminMessage(text, x, y, z)
	-- Your code here
end

Events.OnAdminMessage.Add(OnAdminMessage)

See also