AI Core

ai-admin

Admin tools in the game. Noclip, teleports, heal and revive, vehicles, items, money, jobs, announcements, warnings, weather and a quick menu.

ai-admin gives admins their tools in the game: a quick menu (F9), noclip, teleports, heal and revive, vehicle spawn and delete, items and inventories, money, jobs and gangs, announcements and warnings, weather and time. The commands admins know from QBCore and ESX work with the same names and arguments.

Every tool is decided on the server: only admins (ACE ai.admin, given in ai-core's admin list) can use them. Every change is logged on the actions channel with the admin who made it.

What it does in the game

  • Quick menu (F9). Noclip on / off, teleport to waypoint, heal or revive yourself, spawn or delete a vehicle, Players (each online player: go to, bring, heal, revive, give item, open inventory, warn), announcement, weather and time, always show the map, and a button to the admin panel.
  • Noclip. Fly through the world: W A S D fly, Q / E up and down, Shift faster, Ctrl slower, Space down to the ground, V changes the view, the mouse wheel changes the speed level (a wheel click resets it). The keys show on the HUD while flying. Noclip has no default key: bind Admin: noclip on / off in the key settings, or use /noclip.
  • Admin vehicle. /car or the menu spawns a vehicle with the admin in the driver seat and the keys (temporary key). The admin's previous admin car is deleted.
  • Revive also fills hunger and thirst, so the player does not die again from an empty need.
  • Warnings. A warning stays on the player's screen with the reason until they press "I understand".
  • Announcements show to every player as "Announcement: message" with the style and time from the Messages tab.
  • Close the server. /closeserver kicks every player without admin rights and refuses new joins until /openserver or a restart.

Installation

Installed by the AI Core recipe. By hand: ensure ai-admin after ai-core.

For /addpermission and /removepermission, permission.cfg needs these lines:

permission.cfg
add_ace resource.ai-admin command.add_principal allow
add_ace resource.ai-admin command.remove_principal allow

Panel settings

Admin panel > Admin tools. The quick menu (F9) and noclip keys are set in ai-core's Keybinds tab.

Tab: Settings

How noclip moves and what the admin car comes with.

Noclip: speed levels while flying: the mouse wheel changes the level, a wheel click resets it, Shift, Alt and Ctrl multiply it while held.

SettingWhat it changesUnitDefault
Start speedSpeed level when noclip starts and after a wheel click. 0.1-50.1
Highest speedThe mouse wheel stops at this level. 1-100.16
Wheel stepLevel change per mouse wheel notch; also the lowest level. 0.1-10.0.5
ShiftSpeed multiplier while Shift is held. 1-20.x2
AltSpeed multiplier while Alt is held. 1-50.x4
CtrlSpeed multiplier while Ctrl is held (below 1 slows down). 0.01-1.x0.05

Admin vehicle: what a vehicle spawned with /car or the admin menu comes with. The admin always sits in the driver seat with the keys.

SettingWhat it changesUnitDefault
Fully upgradedEngine, brakes, transmission, suspension and armour at their top level, turbo and xenons on.on / offoff
Fuel0-100, steps of 5.%100
Engine runningThe engine is already on when the admin sits in.on / offon

Tab: Messages

Send an announcement to everyone or a warning to one player. Every message is logged with the admin who sent it.

Announcement: a notification every player sees. The style and time also apply to /announce and the quick menu (F9).

SettingWhat it changesDefault
MessageUp to 300 characters; shown as "Announcement: message".
StyleInfo, Success, Warning or Error: color and icon of the notification.Warning
Time on screenSeconds the announcement stays. 2-60.10
Send nowSends the message to everyone; the message box empties afterwards. An empty message is refused.

Warning: an admin warning for one online player: it stays on their screen until they confirm it. Also in the quick menu (F9) > Players.

SettingWhat it changes
PlayerPlayers online when the panel opened; reopen the panel for players who joined since. You cannot warn yourself.
ReasonWhat the player did wrong, up to 300 characters; the player reads it as written. Required.
Send nowSends the warning to the player; the form empties afterwards.

Tab: World

Weather and time for everyone, through the weather script that runs. A change applies at once; the weather script may change the weather later on its own. Changes are refused while no weather script runs.

Weather: shows what an admin set last (here, with /weather or in the quick menu).

SettingWhat it changesDefault
WeatherPicking one sets it for everyone now: Extra sunny, Clear, Neutral, Smog, Foggy, Overcast, Clouds, Clearing, Rain, Thunder, Snow, Blizzard, Light snow, Christmas snow, Halloween.Not set by an admin
BlackoutCity lights off for everyone.off

Time: changing the hour or minute sets the clock for everyone; it keeps running unless it is stopped.

SettingWhat it changesUnitDefault
Hour0 to 23.h12
Minute0 to 59, steps of 5.min0
Stop the clockThe time stays where it is until switched off.on / offoff

Commands

<x> is required, [x] is optional. id is a player's server id. Every command is for admins (ACE ai.admin) unless the table says otherwise.

Movement and players

CommandArgumentsWhat it does
/noclipNoclip on or off.
/tpmTeleport to the waypoint.
/tp<coords>: x y z, x, y, z, or x y (onto the ground)Teleport to coordinates.
/goto<id>Teleport to a player.
/bring<id>Bring a player to you.
/heal[id] (empty: yourself)Full health. A downed player must be revived instead.
/revive[id] (empty: yourself)Revive and heal; also fills hunger and thirst.
/coordsShow your position (also printed in F8).

Vehicles

CommandArgumentsWhat it does
/car<model> (for example adder)Spawn a vehicle and sit in it.
/dvDelete the vehicle you sit in or stand next to.
/givekey[id] (empty: yourself)Give the keys of the vehicle you sit in or stand next to.
/dvallDelete every vehicle nobody sits in.
/dvpDelete every ped that is not a player.
/dvoDelete every object.

Items and money

CommandArgumentsWhat it does
/giveitem<id> <item> [count] (count default 1)Give a player an item.
/removeitem<id> <item> [count] (no count: all of it)Take an item from a player.
/clearinv<id>Empty a player's inventory.
/openinv<id>Open a player's inventory.
/itemsOpen the item list and take items.
/givemoney (/giveaccountmoney)<id> <account> <amount> (account: cash, bank...)Give a player money on an account.
/setmoney (/setaccountmoney)<id> <account> <amount>Set a player's account balance.

Jobs, gangs and permissions

CommandArgumentsWhoWhat it does
/setjob<id> <job> <grade> (grade 0 = lowest)AdminsGive a player a job and rank (unemployed takes every job away).
/setgang<id> <gang> <grade>AdminsGive a player a gang and rank (none takes every gang away).
/jobEveryoneShow your job and rank.
/gangEveryoneShow your gang and rank.
/addpermission<id> <permission> (admin, mod, god)AdminsPut a player in a permission group until they leave (group.<permission>).
/removepermission<id> <permission>AdminsTake a player out of a permission group.

Server, messages and world

CommandArgumentsWhat it does
/adminOpen the admin panel (a shorter name for ai-core's /aiadmin).
/adminmenuOpen the quick admin menu.
/announce<message>Announce a message to everyone.
/weather<type>: EXTRASUNNY, CLEAR, CLOUDS, RAIN, THUNDER, SNOW, XMAS...Set the weather for everyone.
/time<hour> [minute] (0-23, 0-59)Set the time of day.
/blackout<on>: 1 = on, 0 = offTurn the city lights off (1) or on (0).
/freezetime<on>: 1 = on, 0 = offStop the clock (1) or let it run (0).
/closeserver[reason]Close the server: players without admin rights are kicked and cannot join. Not kept over a restart.
/openserverOpen the server again.

/togglepvp (QB's command) is ai-core's own: it flips ai-core's PvP setting.

Keybinds

Default keyWhat it does
F9Admin: quick menu
noneAdmin: noclip on / off (bind it yourself, or the owner sets a default in ai-core's Keybinds tab)

Known limits

  • /addpermission lasts until the player leaves (as in QB). Permanent admins go in ai-core's admin list.
  • /heal on a downed player does not get them up: use /revive.
  • The World tab shows what an admin set last, not what the weather script changed later.

On this page