AI Core

ai-management

Boss points of jobs and gangs where bosses hire, change grades, fire and run the group's money account.

ai-management gives every job and gang a boss point. Members with a boss grade open a menu there to hire the closest player, change members' grades, fire members, and deposit or withdraw cash on the group's account.

What it does in the game

  • Who sees the point. Only members of the point's job or gang see it. Only members whose grade is a boss grade (set in ai-core's job and gang settings) can open the menu; the server checks the grade.
  • Hire the closest person. Pick a grade; the closest player within 3 m joins the job or gang at that grade and gets a notification.
  • Members. A list of the members who are online. Pick one to Change grade or Fire. The member gets a notification.
  • Account. Shows the group's balance. Deposit cash moves cash from the boss into the account; Withdraw cash moves it back. The account is the job's or gang's bank account in ai-core, the same one ai-banking shows to bosses.
  • Rank rules. A boss acts only on members below their own grade and gives only grades below it. The highest grade may also give and act on its own grade. Nobody acts on themselves.

Installation

Installed by the AI Core recipe. By hand: ensure ai-management after ensure ai-core. It needs ai-core.

Set at least one grade of each job and gang as a boss grade in ai-core's panel (Jobs / Gangs), or nobody can open the menu.

Panel settings

Admin panel > Management > tab Boss points. One record per point. Defaults: police, EMS (ambulance), mechanic and car dealer management. Defaults come from data/points.json.

SettingWhat it changesUnitDefault for a new point
NameThe point's name, shown on its prompt ("Open Police management"). 1-48 characters.empty
For aWhether the point belongs to a Job or a Gang.Job
Job or gangIts name as set up in the framework settings (police).empty
PlaceWhere the boss opens the menu. Stand there and use your position.0, 0, 0
ReachHow close the boss must be. 0.5-10, in steps of 0.5.m1.5

Commands

None.

Keybinds

None. Boss points use ai-core's Interaction style (prompt with E, or a target option).

What it stands in for

No fxProvide. It does the job of a framework's boss menu script, but does not answer another boss menu's exports or events.

Known limits

  • Only members who are online are listed and can be promoted or fired, because ai-core changes memberships of loaded characters only.
  • Hiring needs the new member within 3 m of the boss (the server allows 5 m).
  • Log channel: management.

On this page