JPhone

Configuration

This page explains how JPhone is configured: JPhone Studio, the files under config/, the most important settings with their defaults, language, items, commands and keys, media storage, convars and permissions. The full reference with all 752 settings ships in the package as install/docs/CONFIG.md.

How configuration works

You can edit config.lua and the files in config/ directly, or generate an override file with JPhone Studio. Restart the resource after every change.

  • nil means optional or inherited. It is not the same as false or an empty table.
  • Tables such as job lists are one setting: replacing a table replaces the whole value, so keep the members you still need.
  • Some values are read from convars at runtime; the files only hold their fallback.
  • Never put credentials in shared configuration. Secrets belong in server-only convars.

Startup validates the configuration. Read the startup warnings after every change.

JPhone Studio

JPhone Studio is a standalone page at install/studio/jphone-studio.html. It runs in a normal browser and needs no server.

  1. Open install/studio/jphone-studio.html in your browser.
  2. Review and change the settings you need.
  3. Export zz-studio.lua and place it in jphone/config/.
  4. Restart JPhone and check the startup warnings.

Studio writes overrides instead of changing every base file. Keep a copy of your zz-studio.lua outside the resource, so an update does not overwrite it. If a change does not apply, check whether another override loads later.

Configuration files

File What it controls
config.lua Open key, on-screen keyboard, walking with the phone, item requirement, phone items, debug
config/bridge.lua Adapter selection, language, admin permission, jobs, ESX options, item aliases
config/kimlik.lua Device identity, colours and prices, lines, JCloud, Locate Devices, police inspection, lock and passcodes
config/komutlar.lua Command names and key-binding commands
config/medya.lua Media backend, local storage, S3 and FiveManage, quotas, retention, video profiles
config/sistem.lua Battery, haptics, SOS, crash detection, notifications, Control Centre
config/magaza.lua JStore catalogue, codes, daily codes, sideloading, JCloud requirement
config/telefon.lua Phone app: voicemail, conference, service queues, ring timeout
config/telefon-model.lua In-hand 3D models, grip offsets, fallback prop
config/mesajlar.lua Messages: JCash limit, voice messages, message length
config/kisiler.lua Contacts
config/jface.lua JFace video calls: transport, TURN, quality, limits
config/kamera.lua Camera and video recording
config/fotograflar.lua Photos: locked albums
config/cuzdan.lua Wallet, JPay, JCash, documents, vehicle keys
config/fleeca.lua JBank: transfer limits, invoices, society accounts, ATMs
config/kripto.lua Crypto market, fees and coins
config/garaj.lua Garage, remote actions and valet
config/haritalar.lua Maps, game map textures, routing, places
config/hizmetler.lua Services, service numbers, prices, taxi fares
config/ilanlar.lua Listings: fees, limits, moderation
config/lsworks.lua LS Works job listings and job centre
config/sosyal.lua Warble, Lenz and the social feed
config/darkchat.lua Dark Chat
config/tarayici.lua Browser and city websites
config/posta.lua Mail
config/takvim.lua Calendar
config/saat.lua Clock
config/hava.lua Weather and generated forecasts
config/hesap.lua Calculator and currency conversion
config/muzik.lua Music
config/notlar.lua Notes
config/neon-ucus.lua Neon Flight game
config/oyun2048.lua 2048 game
config/ayarlar.lua Settings app

Core settings

These are in config.lua.

Setting Default Meaning
Config.OpenKey "F1" Default key that opens the phone; players can change it in FiveM key bindings
Config.EkranKlavyesi false Use the on-screen keyboard; the physical keyboard is the default
Config.WalkWithPhone true Allow walking and driving while the phone is open
Config.RequireItem true Require a phone item in the inventory to open the phone
Config.PhoneItems { "jphone_pro", "jphone_duo" } Phone item names
Config.DeviceItems see below Maps each item to a device (pro or duo) and a display model
Config.Debug false Diagnostic logging
Config.EylemTus "" Key for the action button; empty means unassigned

Bridge and adapters

These are in config/bridge.lua. Every adapter setting accepts auto or a registered adapter ID, including custom ones.

Setting Default Built-in IDs
Config.Bridge.Framework "auto" qbx, qb, esx, standalone
Config.Bridge.Inventory "auto" ox, qb, qs, esx, none
Config.Bridge.Banking "auto" renewed, qb, okok, esx, framework
Config.Bridge.Billing "auto" jphone, esx_billing, none
Config.Bridge.Vehicle "auto" jg, qbx, qb, esx, none
Config.Bridge.Keys "auto" qbx, qb, wasabi, none
Config.Bridge.Voice "auto" pma, salty, mumble, none
Config.Bridge.Notify "auto" ox, qbx, qb, esx
Config.Bridge.Dispatch "auto" ps, cd, jphone, none
Config.Bridge.Weather "auto" renewed, qb, natives
Config.Bridge.Perm "auto" ace

Other bridge settings:

Setting Default Meaning
Config.Bridge.Resources { } Maps standard resource names to your renamed resources
Config.Bridge.Locale "en" Language of server-side texts: tr, en, de, fr, pt, es
Config.Bridge.AdminAce "jphone.admin" ACE permission for bridge administration
Config.Bridge.PoliceJobs { "police", "sheriff", "state" } Police jobs when the framework has no job type
Config.Bridge.JobTypes ambulance = ems; police, sheriff, state = leo Maps job names to job types
Config.Bridge.EsxDutyMode "auto" ESX duty mode: auto, native, offprefix or jphone
Config.Bridge.EsxBossGrades { "boss" } ESX grades with boss rights
Config.Bridge.StrictBalance false Check the balance before withdrawing money
Config.Bridge.SyncCharPhone true Sync the active line number to the framework character
Config.Bridge.WaitDependencyMs 15000 Delay before warning about late dependencies
Config.Bridge.ItemAliases { } Maps your server's item names to the phone items

Force an adapter ID only when it matches your installation, for example:

Config.Bridge.Framework = 'qbx'
Config.Bridge.Inventory = 'ox'
Config.Bridge.Voice = 'pma'
Config.Bridge.ItemAliases = { phone = 'jphone_pro' }

Language

JPhone has six UI languages: English (en, product default), Turkish (tr), German (de), French (fr), Brazilian Portuguese (pt) and Spanish (es). An entry missing from a dictionary falls back to English. Currency stays the in-game $.

  • Config.Bridge.Locale controls server-side (Lua) texts. The default is 'en'.
  • Players choose the UI language during setup or in Settings. A saved choice always wins.
  • A player with no saved choice gets a language from the game language: game IDs 1, 2, 4/11 and 5 select fr, de, es and pt; others select en. With Config.Bridge.Locale = 'tr' the UI default stays Turkish.
  • Changing the server locale does not change a player's saved UI language.

UI dictionaries are in html/dil/<code>.js and Lua texts are in locales/<code>.lua. The Lua language files stay readable in the package, so you can correct a translation without source access. The rules for keys and placeholders are in install/docs/LOCALIZATION.md in the package.

Phone items and devices

Setting Default Meaning
Config.PhoneItems { "jphone_pro", "jphone_duo" } Item names that count as phones
Config.DeviceItems jphone_pro = pro / JPhone 18 Pro; jphone_duo = duo / JPhone Duo Item to device and display model
Config.Kimlik.Items Pro: 4 colours, 1400; Duo: 2 colours, 2200 Item types, colours, default colour and price
Config.Kimlik.Colors siyah, gumus, buzul, bordo, gece, beyaz Colour ID, label and hex colour
Config.Kimlik.LegacyModels { } Optional mapping of an old phone item to a device model
Config.Kimlik.Migrate false Legacy data migration; keep it off for a clean install
Config.TelefonModel.Etkin true Use the 3D phone models; false keeps the vanilla prop
Config.TelefonModel.YedekModel "prop_npc_phone_02" Prop used when a 3D model cannot load

Keep Config.PhoneItems, Config.DeviceItems, Config.Kimlik.Items and Config.Bridge.ItemAliases consistent with your inventory definitions. Phones must be non-stackable and keep their metadata.

Lines, JCloud and security

Setting Default Meaning
Config.Line.Mode "esim" Line mode
Config.Line.Prefixes { "555" } Prefixes for new numbers
Config.Line.Length 10 Digits in a phone number
Config.Line.NewLineFee 500 Fee for a new line
Config.Line.Carrier "LS Telekom" Displayed carrier name
Config.JCloud.Domain "jcloud.ls" Domain for new JCloud addresses
Config.JCloud.Required false Require a JCloud account during setup
Config.JCloud.ForeignSignIn "2fa" Sign-in on another device: owner, 2fa or open
Config.JCloud.MaxDevices 5 Devices per JCloud account
Config.JCloud.AutoBackupHours 20 Automatic backup interval
Config.Lock.AutoLockDefault 30 Default auto-lock time in seconds
Config.Lock.WipeAfter 10 Failed passcodes before the device is wiped
Config.Polis.CaseRequired true Police inspection needs a case number

App access

Every app has the same three settings in its own file, for example Config.Garage in config/garaj.lua:

  • Etkin turns access to the app on or off without deleting data.
  • VarsayilanKurulu decides whether the app is installed on newly created phones. Existing phones are unchanged.
  • Ad changes the displayed name only, not the internal app ID.

JStore settings in config/magaza.lua control the catalogue. Config.Store.RequireJCloud (default "paid") sets when a JCloud account is needed: paid, all or none. Daily codes read their secret from the convar named in Config.Store.DailyCodes; the default Dark Chat entry uses jphone_store_darkchat_secret.

Commands and keys

Command names come from Config.Commands in config/komutlar.lua. FiveM ties each player's custom key to the command name, so rename a command only before players set their own keys.

Setting Default Purpose
phone phone Opens and closes the phone (bound to Config.OpenKey)
sos jpSOS SOS hold key (+jpSOS / -jpSOS)
action jpAction Quick action key (+jpAction / -jpAction)
closeInspection closeinspection Ends a police inspection
admin jphone Admin command for devices, lines, JCloud and migration (jphone.admin)
media jmedia Media administration: quota, storage, transfer
crypto crypto Crypto administration
musicApprove musicapprove Music track approval
storeCode jstore_code JStore app codes
storeReview jstore_review Hide or show JStore reviews
alert jpalert Job alert broadcast (amber, public, news, emergency)
emergency jphoneemergency Admin emergency broadcast (jphone.acil)
telProp jphoneprop In-hand phone offset tuning
bridgeInfo jphone:bridge Bridge diagnostics (server console)
bridgeTest jphone_bridgetest Bridge self-test (jphone.admin)
migrate jphone:migrate Legacy data migration (server console)
cameraCheck jphonecameracheck Camera control key
cameraShutter jphonecamerashutter Camera shutter key
cameraFlip jphonecameraflip Front and rear camera key
cameraZoomIn, cameraZoomOut jphonecamerazoomin, jphonecamerazoomout Camera zoom keys
cameraModePrev, cameraModeNext jphonecameramodeprev, jphonecameramodenext Camera mode keys

Config.SOS.Tus sets a default SOS key; empty means unassigned. On QBCore, qb-radialmenu also uses F1 by default, so change one of the two keys before players bind their own.

Media storage

Media settings are in config/medya.lua. The database stores references; the files live in the media backend.

Setting Default Meaning
Config.Medya.Arka "otomatik" Media backend; set 'yerel' for local storage
Config.Medya.Yerel.Kaynak "jphone-medya" Resource that stores local media
Config.Medya.S3.Uc "" S3-compatible endpoint
Config.Medya.S3.Kova "jphone" Private bucket name
Config.Medya.S3.GizliOkuma true Private bucket with short signed URLs
Config.Medya.Fivemanage.Api "https://api.fivemanage.com" FiveManage API address
Config.Medya.Kota.TelefonMB 1024 Storage quota per phone in MB
Config.Medya.Kota.SunucuGB 50 Local server storage quota in GB
Config.Medya.SonSilinenGun 30 Days in Recently Deleted
Config.Medya.Video.Yerel.Sn 30 Video length limit with local storage
Config.Medya.Video.Cdn.Sn 60 Video length limit with remote storage

For local storage, start jphone-medya with write permission before JPhone:

ensure jphone-medya
add_filesystem_permission jphone write jphone-medya
ensure jphone

For S3-compatible storage or FiveManage, put the keys in server-only convars (next section) and check /jmedia status after the restart.

Emergency, SOS and crash detection

Setting Default Meaning
Config.SOS.Dagitim "telefon" telefon sends alerts to on-duty phones; dispatch uses your dispatch adapter
Config.SOS.Arama false When true, SOS and crash detection also call 911
Config.SOS.Meslekler { "police", "ambulance" } Jobs that receive SOS alerts
Config.SOS.Bekleme 300 Cooldown between SOS requests in seconds
Config.Kaza.Aktif true Crash detection
Config.Notifications.AlertJobs { "police", "government" } Jobs allowed to send public or emergency broadcasts
Config.Notifications.EmergencyAce "jphone.acil" ACE permission for emergency broadcasts

By default SOS and crash alerts notify on-duty police and EMS phones and do not call 911 automatically.

Money limits

Setting Default Meaning
Config.Fleeca.TxMax 250000 Largest single bank transfer
Config.Fleeca.DayMax 500000 Daily transfer total
Config.Fleeca.BillMax 50000 Largest invoice
Config.Wallet.JPay.Max 250000 Largest nearby JPay request
Config.CashMax 100000 Largest single JCash transfer
Config.Garage.Valet.Fee 500 Valet delivery fee
Config.Kripto.MaxUsd 250000 Largest crypto trade

JFace and Maps

Setting Default Meaning
Config.JFace.Tasima "sunucu" Video transport mode; the default uses the server relay
Config.JFace.Cloudflare.Turn false Use the Cloudflare TURN credential service
Config.JFace.Kalite "orta" Quality profile: low, medium or high
Config.JFace.SurucuKamera false Allow the camera in the driver seat
Config.JFace.MaksKatilimci 4 Video call participant limit
Config.Haritalar.OyunHaritasi true Read the game's own mini map textures
Config.Haritalar.DokuSiniri 4096 Largest texture edge to read, in pixels
Config.Haritalar.Uydu false Satellite mode (suspended)
Config.Haritalar.YolAgi true Use the phone's own routing when the road data file exists

Convars and permissions

Convar Use
jphone_s3_erisim S3-compatible access key
jphone_s3_gizli S3-compatible secret
jphone_fivemanage FiveManage token
jphone_auto_index 1 (default) creates missing performance indexes at startup; 0 turns this off
jphone_takvim_tz Calendar timezone fallback
jphone_cf_turn_id, jphone_cf_turn_token TURN credentials for JFace
jphone_store_darkchat_secret Secret for the default Dark Chat daily code

Set credentials with set, never with setr, and keep them out of shared files:

set jphone_s3_erisim "YOUR_ACCESS_KEY"
set jphone_s3_gizli "YOUR_SECRET_KEY"
Permission Purpose
jphone.admin Bridge, device and media administration (Config.Bridge.AdminAce)
command.jphone:bridge Running the bridge diagnostic as a player
jphone.acil Emergency broadcasts (Config.Notifications.EmergencyAce)

Grant these only to trusted roles. Startup order and the full convar list are on the Installation page.