SBF Phone PRO Installation Guide
Requirements
System Requirements
- FiveM Server
- ESX or QB-Core Framework
- MySQL Database
- Voice System: PMA-Voice or SaltyChat
Compatible Frameworks
Installation
1 Download & Extract
Extract the sbf_phone_pro folder to your server's resources directory:
server-data/resources/[phone]/sbf_phone_pro
2 Database Setup
Import the provided SQL file into your database. Choose the correct file for your framework:
sbf_phone_pro/INSTALLATION/db.sql
QB-Core:
sbf_phone_pro/INSTALLATION/db_qbcore.sql
3 Framework Configuration
Open sbf_phone_pro/shared/config.lua and set your framework:
Config.Framework = 'esx' -- 'esx' or 'qb'
Config.Inventory = 'esx' -- 'esx', 'ox_inventory', 'qb'
Config.NotifySystem = 'esx' -- 'esx', 'ox_lib', 'okokNotify', 'qb'
4 Item Setup
The database SQL already creates the required items. Verify these items exist:
-- Items created by db.sql:
-- 'sbfphone' (Phone)
-- 'sbfphonebroken' (Broken Phone - for water damage feature)
5 Server Configuration
Add the resource to your server.cfg:
ensure sbf_phone_pro
Configuration
Basic Settings
Config.Framework = 'esx' -- 'esx' or 'qb'
Config.Timezone = 'Europe/Berlin'
Config.PhoneItem = 'sbfphone'
Config.Inventory = 'esx' -- 'esx', 'ox_inventory', 'qb'
Config.NotifySystem = 'esx' -- 'esx', 'ox_lib', 'okokNotify', 'qb'
Config.VoiceSystem = 'pma-voice' -- 'pma-voice' or 'saltychat'
Config.SBFTabletSync = true
Water Damage
Config.WaterDamage = {
Enabled = true,
DamagedPhoneItem = 'sbfphonebroken',
NotifyDamaged = 'Your phone was damaged by water!'
}
Radio Configuration
Config.Radio = {
VoiceSystem = 'pma-voice',
MinFrequency = 1,
MaxFrequency = 999,
DisconnectOnDeath = true,
ReservedFrequencies = {
{min = 1, max = 50, jobs = {'police'}},
{min = 51, max = 100, jobs = {'ambulance'}},
{min = 101, max = 150, jobs = {'mechanic'}},
},
DefaultVolume = 50,
}
Exports
Service Dispatch Exports
Create service dispatches from other scripts using these exports:
-- Create a service chat and send dispatch
local result = exports.sbf_phone_pro:createServiceChat("JOBNAME")
if result and result.success then
local coords = GetEntityCoords(PlayerPedId())
exports.sbf_phone_pro:sendServiceMessage(result.chat.id, "TEXT TO CHAT")
exports.sbf_phone_pro:sendServiceCoordinates(result.chat.id, {
x = coords.x,
y = coords.y
}, "location")
end
Support
Need Help?
If you encounter any issues during installation or have questions about the script, please don't hesitate to contact the support team.