JPhone

Troubleshooting

This page covers the most common JPhone problems, the diagnostics commands and frequently asked questions. It applies to JPhone 1.0.0 with the resource name jphone. The same answers ship in the package as install/docs/FAQ.md.

Before you start

  1. Read the server startup output for errors about dependencies, SQL and unavailable adapters.
  2. Open the client F8 console and look for errors when you use the phone.
  3. Run jphone:bridge in the server console and check the selected adapters.
  4. Join as an authorized administrator and run /jphone_bridgetest.
  5. Reproduce the problem on a test server, not on your live server.

A preview of the UI in a normal browser only tests the preview. It does not prove that FiveM startup or server callbacks work.

Diagnostics commands

Command Where What it does
jphone:bridge Server console Shows the selected adapters and capability flags
/jphone_bridgetest In game, jphone.admin Tests the bridge with an actual loaded player
/jmedia status In game, admin Shows the media backend and storage state
/jphone In game, jphone.admin Without arguments, lists the administrative subcommands
/jphone give <server-id> pro In game, jphone.admin Gives a test phone on a test server

For more detailed logs, turn on Config.Debug, Config.Bridge.Debug or Config.Medya.Debug on a test server. Config.Kaza.Debug prints crash detection decisions to the F8 console.

Common problems

The resource does not start

JPhone is delivered through Cfx Asset Escrow. Your sv_licenseKey must belong to the Cfx.re account that owns the asset. Also check that the resource folder is named jphone, unless you changed every reference to it, and that no packaged file is missing. Restore missing files from the package instead of hiding the problem with a folder rename.

The phone does not open

  • Check that OneSync, oxmysql, ox_lib and your framework and inventory started successfully before JPhone.
  • Check the key assigned to the phone in the FiveM key bindings. The default is F1 (Config.OpenKey).
  • Check that the player is fully loaded and carries a phone item (Config.RequireItem).
  • Check lock and lost mode, and any death or restraint restriction.
  • Confirm that the UI files in html/ are present.

The phone item is missing or using it does nothing

  • The item IDs are jphone_pro and jphone_duo. Check that your inventory defines both and that Config.PhoneItems lists them.
  • Apply the right definitions from install/items/, including the images, and restart the inventory as its own guide requires.
  • Use non-stackable items that keep metadata.
  • Check the selected inventory adapter. none cannot supply physical phone items.
  • If your server uses another item name, map it in Config.Bridge.ItemAliases.
  • Never give two devices the same serial.

F1 opens another menu

On QBCore, qb-radialmenu also uses F1 by default. Change Config.OpenKey or the Config.Keybind setting of qb-radialmenu before players set their own keys.

SQL warnings in the console

Confirm that oxmysql connects to the intended database and that install/install.sql from this exact release was imported. Check that the database user can create and update tables and, when enabled, indexes. Missing-table warnings mean the install is not complete.

set jphone_auto_index 0 turns off automatic index creation; it does not repair missing tables. Never import an unrelated or old schema to silence an error, and back up before applying any SQL.

Calls connect but nobody can be heard

Check the selected voice adapter and its capability flags. none means no call audio. Start the voice resource before JPhone and select its ID (pma, salty, mumble). Test normal server voice first, then a call between two real players. Calls to virtual numbers are automated services and have no other player's voice.

JFace video does not work

JFace needs a working video network path and a working voice adapter for audio. The default transport uses the server relay. If you configure TURN, keep its credentials in server-only convars (jphone_cf_turn_id, jphone_cf_turn_token). Never paste credentials into a report.

Photos or videos do not save

For local storage:

  • Start jphone-medya and grant the write permission before JPhone:
ensure jphone-medya
add_filesystem_permission jphone write jphone-medya
ensure jphone
  • A running data resource without the write permission is not enough.
  • Check Config.Medya.Yerel.Kaynak, free disk space, quotas and /jmedia status.
  • If startup reports a fallback to media/ inside the phone resource, keep that folder during updates.

For remote storage, check the selected backend, the endpoint and the server-only convars. Secrets belong in set, not setr. External images must be WebP or JPEG; SVG, HTML and rejected file types are not supported. Back up and restore database references and media files together.

The map is blank or looks different from another server

JPhone reads the game's currently active mini map textures. It ships no dark, atlas or satellite map tiles. Check your server's active map and any separately licensed map resource. Satellite mode is off by default. Missing game textures in a browser preview do not mean the map fails in FiveM.

SOS reaches the wrong jobs or no external dispatcher

Check Config.Bridge.PoliceJobs, JobTypes, Config.SOS.Meslekler, actual job duty and phone access. By default SOS and crash alerts go to on-duty police and EMS phones and do not call 911. An external dispatcher is optional: select it explicitly with Config.SOS.Dagitim and check its beta status. Do not send SOS again from its own observation hook, as this creates a loop.

A Studio or config change does not apply

  • Export zz-studio.lua to config/ and restart the resource.
  • Read the startup validation warnings.
  • Make sure you edit the loaded release, and check whether another override loads later.
  • An inherited value is nil; replacing a table replaces all of it.
  • Etkin controls access to an app; VarsayilanKurulu only affects newly created phones.

A beta adapter fails

A registered adapter or a passing mock test does not prove that an upstream version was tested in game. Keep beta integrations on a test server until verified, and check the status table on the Framework and integrations page.

Frequently asked questions

Does the data follow the character or the phone?

It follows the device serial. Contacts, device settings and other device data stay with the phone when it is handed over. JCloud sign-in and line management have their own rules. Do not add device tables to a character deletion list. An inventory without metadata uses a virtual device with limited behaviour.

How do I change the language?

Players choose English, Turkish, German, French, Brazilian Portuguese or Spanish during setup or in Settings. A saved choice wins over the server default. Server owners set Config.Bridge.Locale (default 'en') for server-side texts. A trusted server script can call SetLanguage(target, code) for one player; it is not a bulk migration.

Does SOS call 911?

Not by default. Config.SOS.Arama = false means alerts only. Set it to true if SOS and crash detection should also place a 911 call.

Can I rename commands?

Yes, in Config.Commands in config/komutlar.lua. Rename them before players bind their own keys, because FiveM links each custom key to the command name.

Can I reset, erase or restore a phone safely?

Reset, remote erase and security reset have different effects and are not interchangeable. Test on a disposable device and keep a matching database and media backup. Deleting the resource does not remove its database data. Read the update, rollback and removal steps on the Installation page before changing a live installation.

Do I need my old qb-phone?

No. JPhone provides the qb-phone compatibility name, so stop the separate qb-phone resource. Test each script that used your previous phone.

Asking for help

Include the release version, your resource names and versions, the jphone:bridge report, a sanitized console error and the steps to reproduce. Remove credentials and private player data before you share logs. Contact details are on the Getting started page.