Core Configuration (configuration/config.lua)
The primary configuration is defined in configuration/config.lua.
Bridge Settings
Lua
Config.Bridge = {
Framework = 'auto', -- 'qbox' | 'qb' | 'esx' | 'ox' | 'standalone'
Inventory = 'auto', -- 'ox_inventory' | 'qb-inventory' | 'qs-inventory' | 'ps-inventory' | 'tgiann-inventory' | 'codem-inventory' | 'esx_inventory'
Banking = 'auto', -- 'finals_banking' | 'qb-banking' | 'renewed-banking' | 'fd_banking' | 'tgg-banking' | 'ox_core' | 'esx_society'
Voice = 'auto', -- 'pma-voice' | 'saltychat' | 'mumble-voip' | 'standalone'
Dispatch = 'auto', -- 'built-in' | 'ps-dispatch' | 'cd_dispatch' | 'qs-dispatch' | 'rcore_dispatch' | 'tk_dispatch' | 'origen_police' | 'lb-tablet'
Housing = 'auto', -- 'ps-housing' | 'qbx_properties' | 'qs-housing' | 'qb-houses' | 'loaf_housing' | 'nolag_properties' | 'vms_housing'
}Phone Device Toggles
Lua
Config.Phone = {
ItemName = 'finals_phone', -- Inventory item name
ItemRequired = true, -- Must player hold the item in inventory to open?
OpenCommand = 'finalsphone', -- Chat command to open
OpenKey = 'M', -- Default keyboard key
ToggleOnOpenKey = true, -- Pressing key while open closes the phone
UniquesPhone = {
Enabled = false, -- Unique device IDs and IMEIs per phone item
},
BlockOpenWhenDead = true, -- Block using/opening phone while dead or incapacitated
DeadNotify = 'You cannot use your phone while unconscious.',
}Camera, Screencapture Video & Voice Recorder
Lua
Config.Camera = {
UseFivemanage = true,
FivemanageResource = 'fmsdk',
MaxPhotos = 200,
UseCellCamera = true,
ZoomMainScreen = true, -- Zooming in Camera app zooms player POV
PovFovMin = 16.0,
PovFovMax = 60.0,
ZoomDefault = 1.0,
ZoomMin = 0.25,
ZoomMax = 1.0,
ZoomStep = 0.04,
UseScreencaptureVideo = true, -- Video recording support
ScreencaptureResource = 'screencapture',
MaxVideoDurationMs = 300000, -- 5 minutes video limit
}
Config.Recorder = {
MaxDurationMs = 120000, -- 2 minutes per voice memo
MaxRecordings = 80,
MaxUploadBytes = 8388608, -- 8 MB limit
}Physical Damage & Battery
Lua
Config.PhoneDamage = {
Enabled = false,
MaxCracks = 3,
FallHeightMin = 4.0, -- meters
VehicleImpactMinSpeed = 12.0,
CooldownMs = 4000,
BrokenNotify = 'Your phone screen is broken. Visit Digital Den to repair.',
WaterDamage = {
Enabled = false, -- Shorts phone when swimming in water
RequireClosed = true,
CooldownMs = 15000,
Notify = 'Your phone got damaged by water.',
},
}
Config.PhoneBattery = {
Enabled = false,
DrainMinutesPerPercent = 1,
LowPowerPercent = 20,
ChargePercent = 100,
PowerBankItem = 'phone_power_bank',
ConsumePowerBank = true,
}