Skip to Content
Frameworksox_coreInstallation

ox_core Installation

ox_core can be installed from a release like any other resource, or built from source if you want to track main. Both paths are documented here.

Prerequisites

⚠️

ox_core ships no jobs, shops, phone or HUD. After this install you will have a server you can connect to, create a character on, and very little else. That is expected — see the overview.

Method 1 — txAdmin recipe

Overextended maintains a recipe that installs the whole stack.

Start FXServer

Run FXServer.exe and link your Cfx.re account in the txAdmin wizard.

Use the Overextended recipe

Point the deployer at the overextended/txAdminRecipe repository.

Enter database credentials

The deployer creates the schema and imports the SQL.

Method 2 — from a release

Install the dependencies

Download releases of oxmysql and ox_lib. Both are required.

Download ox_core

Take the latest release and extract it into your resources folder.

Add the optional resources

Not strictly required, but expected by most ox_core code: ox_inventory, ox_target, ox_doorlock.

Configure server.cfg

set onesync on set mysql_connection_string “mysql://user:password@localhost/ox?charset=utf8mb4”

ensure oxmysql ensure ox_lib ensure ox_core ensure ox_inventory ensure ox_target

ox_core builds its own schema on first start — there is no SQL file to import manually.

Method 3 — build from source

Only if you want to track main or contribute.

Install the toolchain

You need Git, Node.js and bun.

Clone and build

git clone https://github.com/overextended/ox_core.git  cd ox_core bun i bun run build

Configuration

ox_core is configured entirely through convars. Use setr so clients can read the replicated ones:

setr ox:characterSlots 3 setr ox:deathSystem true setr ox:characterSelect true setr ox:plateFormat "........" setr ox:defaultVehicleStore "impound" setr ox:debug false

ox:debug also allows duplicate identifiers, which is how you test multiple characters from one machine. Never leave it on in production.

Full convar list → 

Validation

Rollback

  1. Stop FXServer
  2. Drop and recreate the database, then restore your last dump
  3. Restore the previous resources folder and server.cfg
  4. Confirm players can connect before trying again

See Backups.

Next steps