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_Phonemust always be started after your framework, inventory, and voice resources, but before5M_Watch.
