Skip to content

Notifications

In Configuration, Notifications, you choose how the AC notifies players and staff. The AC uses four types (success, info, warning, error) and adapts to the notify your server already has, without code.

  • Mode: AC toast, chat, server or client export, or client or server event.
  • Resource and function: with a search of existing resources.
  • Argument order: click each argument to swap it, or pick a template such as (player, message, type).
  • Name of each type: if your notify has no warning, leave the field empty and the AC uses the closest one.
  • Preview: shows the generated call and how the toast looks. “Test on me” sends all 4 types without saving.

For safety only data is stored, never code. Administration resources and functions with dangerous names (kick, ban, give, set, money, acl) are refused, and every change is audited. If your notify fails, the AC uses its own toast. These count as a failure:

  • the resource is stopped, or the call raises an error;
  • the export does not exist (MTA returns false) or your function returns false. A function with no return (or one that returns true) counts as success;
  • in server event mode, the event does not exist. An event cancelled by a handler (cancelEvent()) counts as handled and the AC does not repeat the notice;
  • for client events the AC cannot know whether anyone received them: check with “Test on me”.

Staff alerts: alerts.minLevel (log, score, kick, ban), a 300 s cooldown per player and code, and at most 20 per minute per staff member (the rest becomes a summary). Kicks and bans always alert.