Installation
liveBase framework installation — requirements, database, migration, NUI build.
🌐 Türkçe · Kurulum
Requirements
- FiveM server (OneSync:
on— required in txAdmin) - MariaDB / MySQL (XAMPP recommended)
- Node.js 18+ (for NUI build)
Steps
1. Copy resources
Copy the resources/[livedev]/ folder to your server's resources directory.
2. Install dependencies
Install dependencies under resources/[base]/: oxmysql, ox_lib, PolyZone
3. Prepare the database
Recommended (automatic): Create the livebase database, set mysql_connection_string
in server.cfg, and start the server. liveBase applies pending migrations on boot
(Config.Migrate.AutoRunOnBoot).
Manual trigger (txAdmin / server console):
fw migrateIf the database doesn't exist on first install, run CREATE DATABASE livebase in MySQL
first; tables are created via fw migrate.
Additional script SQL (outside liveBase):
-- resources/[livedev]/liveAparts/sql/liveaparts.sqlThe legacy manual path still works: sql/livebase.sql + sql/admin_foundation.sql.
For new versions, use fw migrate instead — see
Migration System.
4. server.cfg
See the server.cfg reference.
5. NUI build (first install)
cd resources/[livedev]/liveFirstScreen/web
npm install
npm run buildTest account
INSERT INTO live_accounts (mail, pass, name, surname)
VALUES ('test@live.com', 'password123', 'John', 'Doe');Quick start (liveBase)
ensure oxmysql
ensure liveBase
set mysql_connection_string "mysql://root@localhost/livebase?charset=utf8mb4"
set livebase_locale en
set livebase_dashboard_token "strong-token-here"local liveBase = exports['liveBase']:GetBaseObject()
local player = liveBase.Functions.GetPlayer(source)
player.Functions.AddMoney('cash', 100, 'example')