AI Core

Installation

Set up an AI Core server.

Requirements

DependencyVersionWhy
FXServer (artifact)38039 or newer recommendedNewer builds let the server see player deaths itself. Older builds still run.
BunlatestInstalls packages and builds the TypeScript resources.
MariaDBlatestThe database.

Setup

Get the server data folder

Clone ai-core into the folder you will use as your server data folder.

Configure secrets

Copy env.example.cfg to env.cfg, fill in your license key and the database connection, then create the database.

Install and build

bun install
bun run build

Start the server

Start FXServer (txAdmin) with this folder as the server data folder.

Layout

PathWhat
server.cfg, security.cfg, misc.cfg, permission.cfgServer config. Secrets go into env.cfg.
resources/[ai]/AI Core resources, each ai-* folder its own git repo.
resources/[standalone]/Third-party resources.
packages/The @aicore-fivem/* npm packages.
template/Template for new resources: bun run new <name> "<description>".

Na tej stronie