JK Pause Menu

Admin Contact

The "Contact an admin" button can trigger anything on your server — a command, a client event or an export. Wire it to your existing report/ticket system.

Configuration

Set the behavior through CFG.AdminContact:

shared/cfg.lua
AdminContact = {
    type = "command", -- "command" | "event" | "export"
    name = "report",
}
OptionTypeDefaultDescription
typestring"command"How the action is triggered: command, event or export.
namestringThe command name, event name, or "resource:function" export to call.

Type: command

Runs a client command via ExecuteCommand. Great for most report systems.

shared/cfg.lua
AdminContact = {
    type = "command",
    name = "report",   -- runs /report
}

Type: event

Fires a client event with TriggerEvent. Use this for resources that expose a client-side event.

shared/cfg.lua
AdminContact = {
    type = "event",
    name = "myreports:openMenu",
}

Type: export

Calls an export using the resource:function format. The string is split on the colon, so the resource and function names must not contain one.

shared/cfg.lua
AdminContact = {
    type = "export",
    name = "myreports:OpenReportMenu", -- exports['myreports']:OpenReportMenu()
}
Client-side executionAll three types run on the client that clicked the button. If your report system needs the server, trigger a server event from your command/event/export as you normally would.