Database Setup

5M Phone uses structured relational tables in MySQL or MariaDB to persist user accounts, text messages, phone calls, social feeds, emails, and device settings.


Automated SQL Import

The complete SQL schema is located in:

Plain text
5M_Phone/installation/sql/database.sql

(or 5M_Phone/sql/import.sql)

How to Import

  • HeidiSQL / phpMyAdmin / MySQL Workbench: Open your FXServer database and import installation/sql/database.sql.

  • Command line:

    Shell
    mysql -u USER -p DATABASE < "installation/sql/database.sql"

Framework Identifier Support

5M Phone automatically maps character identifiers across all major frameworks into the citizenid column:

FrameworkMeaning of citizenid column
Qbox / QBPlayerData.citizenid
ESXCharacter identifier / license-style id
ox_coreCharacter id string (charId)

You do not need separate SQL schemas for different frameworks — one schema covers all.


Relational Tables Overview

Table NameDescription
5m_phone_usersRegistered phone devices, assigned numbers, battery percentage, lockscreen PIN, FaceID settings.
5m_phone_contactsSaved address book contacts with names, numbers, avatar photos, and notes.
5m_phone_messagesDirect SMS conversations, group chats, message contents, and attachments.
5m_phone_callsCall history log (incoming, outgoing, missed, duration, voicemail recording links).
5m_phone_mailsEmail inboxes, sent mail, inbox folders, attachments, and spam tags.
5m_phone_photosGallery photos, selfies, and videos taken with the in-game camera.
5m_phone_xbirdXbird social media posts, retweets, likes, hashtags, and user profile metadata.
5m_phone_instaInsta social media posts, stories, comments, likes, and photo uploads.
5m_phone_darkchatEncrypted anonymous burner channels, memberships, and ephemeral messages.
5m_phone_dispatchLaw enforcement CAD alerts, active callouts, assigned units, and responder notes.
5m_phone_watch_pairingSmartwatch Bluetooth pairing PIN codes and companion device states.