5M Phone
Use code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchaseUse code 'LAUNCH10' — 10% OFF on your first purchase
5M Phone5M Phone
  • Home
  • Docs
Login

Documentation

  • 5M Phone
  • Open & Un-escrowed Files
  • Installation
    • Prerequisites & Dependencies
    • Step-by-Step Installation
    • Database Setup
    • Voice Chat & WebRTC Setup
  • Configuration (Open Files)
  • 5M Watch Companion
  • Bridge Architecture (Open Files)
  • Exports & Events (Developer API)
  • Troubleshooting & FAQ
  • Custom App Development Guide
  • 5M Migration Tool
DocumentationInstallationStep-by-Step Installation
📄

Step-by-Step Installation

Follow these steps to deploy 5M Phone and 5M Watch on your FiveM server.


Step 1: Resource Placement

Place the 5M_Phone folder into your server's resources directory:

Plain text
resources/
└── [scripts]/
    ├── 5M_Phone/
    └── 5M_Watch/ (Optional smartwatch companion)

Step 2: Register Inventory Items

Register the phone items in your inventory system of choice:

For ox_inventory (data/items.lua)

Lua
['finals_phone'] = {
    label = '5M Smartphone',
    weight = 200,
    stack = false,
    close = true,
    description = 'An ultra-thin smartphone running 5M OS with cellular and internet access.',
    client = {
        export = '5M_Phone.OpenPhoneItem'
    }
},

['sim_card'] = {
    label = 'SIM Card',
    weight = 10,
    stack = true,
    close = true,
    description = 'Standard carrier SIM card to activate cellular mobile service.',
    client = {
        export = '5M_Phone.UseSimCardItem'
    }
},

['smart_watch'] = {
    label = '5M Smartwatch',
    weight = 80,
    stack = false,
    close = true,
    description = 'A wearable digital smartwatch with health tracking and phone companion sync.',
    client = {
        export = '5M_Phone.OpenWatchItem'
    }
},

['phone_power_bank'] = {
    label = 'Power Bank',
    weight = 300,
    stack = true,
    close = true,
    description = 'Portable USB-C high-speed emergency charging pack.',
    client = {
        export = '5M_Phone.UsePowerBankItem'
    }
},

For qb-inventory / ps-inventory / qs-inventory

Lua
['finals_phone'] = {
    name = 'finals_phone',
    label = 'Smartphone',
    weight = 200,
    type = 'item',
    image = 'finals_phone.png',
    unique = true,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'High-end smartphone with touch display and cellular connectivity'
},

['sim_card'] = {
    name = 'sim_card',
    label = 'SIM Card',
    weight = 10,
    type = 'item',
    image = 'sim_card.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'Prepaid mobile cellular SIM card'
},

['smart_watch'] = {
    name = 'smart_watch',
    label = 'Smartwatch',
    weight = 80,
    type = 'item',
    image = 'smart_watch.png',
    unique = true,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'Digital companion smartwatch'
},

['phone_power_bank'] = {
    name = 'phone_power_bank',
    label = 'Power Bank',
    weight = 300,
    type = 'item',
    image = 'phone_power_bank.png',
    unique = false,
    useable = true,
    shouldClose = true,
    combinable = nil,
    description = 'Portable emergency power bank'
},

Step 3: Configure server.cfg Start Order

Add the resources in this exact order:

Config
# Database & Core Libs
ensure oxmysql
ensure ox_lib

# Framework & Inventory (example Qbox, QBCore, or ESX)
ensure qbx_core
ensure ox_inventory

# Voice System
ensure pma-voice

# 5M Phone & Smartwatch
ensure 5M_Phone
ensure 5M_Watch

[!IMPORTANT] 5M_Phone must always be started after your framework, inventory, and voice resources, but before 5M_Watch.

PreviousDocumentationPrerequisites & DependenciesNextDocumentationDatabase Setup

On this page

  • Step 1: Resource Placement
  • Step 2: Register Inventory Items
  • For ox\_inventory (data/items.lua)
  • For qb-inventory / ps-inventory / qs-inventory
  • Step 3: Configure server.cfg Start Order