Owned Shops - Installation - SMX Docs
SMX logo

SMX Documentation

Production-grade Script Knowledge Base

Build 2026.04 Live Docs



Owned Shops

Job Scripts · FiveM Ready

Installation Blueprint

Step 1: Place Resource

Extract and place as resources/[smx]/smx-ownedshops. Do not rename the folder.

Step 2: Set Dependencies

Ensure database bridge and framework are active before the script starts.

Step 3: Configure Core Mode

Set framework/inventory/interaction/notify behavior in config.lua.

Step 4: First Boot

Start server once to create schema and run internal migration routines.

Step 5: Validation

Test buy flow, owner panel, delivery jobs, and creator panel permissions.

Recommended server.cfg Order

ensure mysql-async
ensure ox_lib
ensure es_extended   # or qb-core
ensure ox_inventory  # optional
ensure ox_target     # optional
ensure smx-ownedshops

The script uses @mysql-async/lib/MySQL.lua in fxmanifest.lua, so mysql-async must be available.

Important: If you rename the resource, NUI callbacks to https://smx-ownedshops/... will fail.

Automatic Database Setup

On startup, the server creates and updates schema objects for owners, stock, logs, customers, item settings, category unlocks, staff, upgrades, delivery jobs and admin runtime/logs.

This includes ALTER TABLE IF NOT EXISTS style updates and legacy data migration from old table prefixes.