Skip to main content

BenzyPrioAOP — Exports

BenzyPrioAOP exposes no Lua exports. It is driven entirely by chat commands (server-authoritative) and its own NUI, so there is no exports.BenzyPrioAOP:* surface to call from another resource. If you want to react to what it does, listen to its events instead — see EVENTS.md.

The public control surface is the commands below. Everything they change (the AOP value, each prio's state, peacetime) lives on the server and is pushed to clients over the events in EVENTS.md.


Commands

CommandArgumentWho can use itWhat it does
/aop[location]Config.Access.aopSets the server-wide Area of Patrol (multi-word names allowed).
/startprio[prio name]EveryoneStarts a prio (only if it is Available).
/joinprio[prio name]EveryoneJoins an active prio (if there is room).
/leaveprio[prio name]EveryoneLeaves a prio; auto-ends it into cooldown if you were the last one.
/endprio[prio name]The starter, or Config.Access.prioEnds the prio and starts its cooldown.
/cooldown[prio name]Config.Access.prioForces a prio straight into cooldown.
/peacetimeConfig.Access.peacetimeToggles server-wide peacetime on/off.
/customizehudEveryoneOpens the drag/resize HUD editor (client-side).
debugbenzyprioaopServer console / F8Diagnostics — see below.

Prio names are case-insensitive and may contain spaces, so /startprio city prio matches a prio named City Prio.

Access for the staff-gated commands is decided by BenzyBridge's unified access system through Config.Access (framework job/group, raw identifiers, the ACE string, or a Discord role). See INTEGRATIONS.md.


Debug command

debugbenzyprioaop is available on both sides:

  • Server console (src == 0 only) — prints what BenzyBridge resolved (framework / notify / drawtext / target / inventory) plus this resource's feature flags.
  • Client F8 console — gated behind Config.Debug. Prints the resolved bridge stack (framework / notify / drawtext / target) and then asks the server which staff powers you hold (benzy.aop / benzy.prio / benzy.peacetime), showing the full access decision, not just the ACE bit.

NUI callbacks

The HUD editor talks to the client script internally; there is no public NUI surface to call.