Skip to main content

Database

Database tables for character data and slot purchases

This section

Database

All tables are created and repaired automatically when the resource starts — no manual import is needed. data.sql is kept for reference / fully manual setups.

The automatic setup also migrates older installations (e.g. the legacy multichar_music.license INT column is converted to VARCHAR(60)).

Tables

multichar_music

Per-player background music preferences.

ColumnTypeDescription
idINT (PK, AI)Unique identifier
licenseVARCHAR(60)Player license
urlLONGTEXTMusic URL (YouTube/SoundCloud)
volumeINTVolume level

multichar_purchases

Tebex transaction records for slot purchases.

ColumnTypeDefaultDescription
idINT (PK, AI)Unique identifier
transactionVARCHAR(50)Tebex transaction ID
slotsINT0Number of slots purchased
usedINT0Number of slots redeemed

multichar_slots

Per-player additional slot count.

ColumnTypeDescription
idINT (PK, AI)Unique identifier
licenseVARCHAR(60)Player license
slotsINTAdditional purchased slots

players / users (ALTER)

A settings column (LONGTEXT) is added automatically to your framework's player table — players for QB/QBox, users for ESX — for storing character display preferences (pose, background, camera, profile photo).