JPhone
Installation
This page is the installation guide for JPhone 1.0.0: preparing the server, copying the release, importing the SQL, framework steps, start-up order and first-use checks. The same guide ships inside the package as install/docs/INSTALL.md.
Download the package
- Sign in to the Cfx.re Portal with the Cfx.re account you used when buying on Tebex.
- Open your granted assets, find JPhone and download it.
- Extract the archive. It contains the
jphonefolder; the install kit (SQL, item definitions, documentation, the local media resource and JPhone Studio) is injphone/install/.
JPhone is delivered through Cfx Asset Escrow. Your server's sv_licenseKey must belong to the Cfx.re account that owns the asset, otherwise the resource does not start.
Version 1.0.0. Follow these steps on a test server first. A package without
install/install.sql,install/items/orinstall/studio/is incomplete; do not substitute SQL from another version.
1. Prepare the server
Install OneSync, oxmysql and ox_lib, configure the database connection using your existing server configuration, and install your chosen framework and optional integrations. Use the adapter table (install/docs/ADAPTERS.md in the package) to check which combinations have game test evidence. Start on a test server and back up the database and existing media before changes.
The resource provides the qb-phone compatibility name. Stop a separate qb-phone resource and avoid loading two phone providers. Full esx_phone compatibility may need a separate integration resource; not all legacy messaging events are implemented. Check scripts that depend on your previous phone rather than assuming complete compatibility.
2. Copy the release and import SQL
- Put the delivered phone folder in
resources/[phone]/jphone. Keep its manifest,html/,stream/and other release contents together. - Import
jphone/install/install.sqlinto the same database used byoxmysql. Read the header of the file first: it can be imported again without harm, drops and changes nothing that already exists, and does not migrate data from older phone versions. The resource creates a few more tables itself on its first start. Do not run an old-data migration for a fresh install. - Import/copy the item definitions for your inventory from
jphone/install/items/(ox_inventory.lua,qb-core.luaoresx.sql;README.mdin that folder explains each one) and put the two item images,jphone_pro.pngandjphone_duo.png, in your inventory's image folder. - Phone item IDs are
jphone_proandjphone_duo. Phones must be non-stackable and metadata must survive inventory moves. VerifyConfig.PhoneItems,Config.DeviceItems,Config.Kimlik.ItemsandConfig.Bridge.ItemAliasesagainst the definitions. Do not reuse one serial number for different physical phones.
Do not add device tables to framework character deletion lists: a character leaving the server must not delete data belonging to a phone another character may now carry. Do not run automatic cleanup against device data until you have checked ownership and retention requirements.
3. Framework steps
Qbox
- Start
qbx_corebefore the inventory and JPhone. Forox_inventory, check its framework selection matches Qbox (qbx). - Add the kit's ox_inventory items and images. Restart the inventory following its own installation procedure.
- Keep
Config.Bridge.Framework = 'auto', or force'qbx'; keep inventory'auto'or force'ox'. - Start your banking, keys, garage and voice resources before JPhone. Verify each selected adapter with diagnostics; Qbox startup alone does not verify every optional integration.
- Optional: stock
qbx_coregives new characters aphoneitem (starterItemsinqbx_core/config/shared.lua). To hand out a JPhone instead, replacephonewithjphone_prothere. - Join as a test character, give a phone through your authorized shop/admin path and check setup, metadata persistence, calls, balance and job duty.
QBCore
- Start
qb-coreand your chosen inventory first. Forqb-inventory, apply the kit's QBCore item definitions toqb-core/shared/items.luaand the images to the inventory's image folder. - Set phone items as unique/non-stackable using that inventory's schema; preserve serial metadata when dropping, storing and trading them.
- Leave framework
'auto', or select'qb'; select the inventory actually installed, such as'qb'. - Start optional banking, garage, keys and voice resources before JPhone. Disable a separate
qb-phoneresource and test existing integrations using the compatibility provider. qb-radialmenuuses F1 by default, the same as JPhone's default open key (Config.OpenKey = 'F1'inconfig.lua). Change one of them (Config.OpenKey, orConfig.Keybind = 'F1'in theqb-radialmenuconfig) before players bind their own keys.- Check inventory use, call audio, transfers and job/duty updates. Use the framework's job/duty/metadata APIs so the bridge receives the corresponding events.
ESX
- Start
es_extendedbefore your inventory and JPhone. Apply the kit's ESX item SQL or the chosen inventory definitions, as appropriate for your installation. - Leave framework
'auto', or select'esx'. With ox_inventory select'ox'and verify its framework mode is ESX. Native ESX inventory uses'esx'and has no physical-item metadata: it falls back to a virtual device with limited device tracking. - Review
Config.Bridge.EsxDutyMode,EsxBossGrades,JobTypesandPoliceJobsfor your jobs. Server-side use checks must not treat client-reported death/restraint state as authoritative. - Start JPhone before job resources that register service numbers at startup, so the registrations are not missed. Configure
esx_billingif you use its invoices; otherwise check the built-in invoice fallback. - Test phone use, banking history, job changes, emergency destinations and inventory behavior with a real ESX test character.
Standalone
With no framework, JPhone starts in limited No Service mode. Missing player, banking and inventory capabilities are reported. This is not a full RP framework replacement. Disabling the item requirement alone does not supply character identity or money APIs.
4. Startup order and local media
For local storage, copy the kit's separate jphone-medya folder to resources/[phone]/jphone-medya. It is a data resource, not a second phone script. Its j/ and tmp/ directories must be available to the server process.
Example for Qbox with ox_inventory and pma-voice:
ensure oxmysql
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure pma-voice
# Ensure your selected bank, garage, keys and dispatch resources here.
ensure jphone-medya
add_filesystem_permission jphone write jphone-medya
ensure jphone
add_ace group.admin jphone.admin allow
For QBCore replace the framework/inventory lines with qb-core/your inventory; for ESX use es_extended/your inventory and keep service-number registration resources after JPhone. Enable OneSync through your server configuration. Do not use the example to replace your full server configuration. A commented version with every optional convar and permission is in install/server.cfg.example.
Set Config.Medya.Arka = 'yerel' and Config.Medya.Yerel.Kaynak = 'jphone-medya'. Startup should report the local backend and the separate data resource. Without a usable separate store, the phone may fall back to its own media/ folder; replacing the phone folder can then lose those files. Check /jmedia status and upload a photo before proceeding.
Back up both database media references and jphone-medya/j/. Restore matching copies together. Keep jphone-medya across phone updates. For remote backends, follow your backend's access and backup procedure; jphone-medya is not required when remote storage is selected and working.
5. Convars and permissions
| Convar | Use | Default/fallback |
|---|---|---|
jphone_s3_erisim |
S3-compatible access key, with the S3 settings in config/medya.lua |
Empty; backend configuration required |
jphone_s3_gizli |
S3-compatible secret | Empty |
jphone_fivemanage |
Media backend token | Empty |
jphone_auto_index |
Create missing performance indexes during startup | 1; use 0 to disable automatic index creation |
jphone_takvim_tz |
Calendar timezone fallback if no config timezone is supplied | Empty; falls through to the calendar's fallback |
jphone_cf_turn_id, jphone_cf_turn_token |
Server-only TURN service credentials for the configured JFace provider | Empty; optional video networking configuration |
Store daily-code credentials use the convar selected in Config.Store.DailyCodes[appId].convar (the current Dark Chat entry uses jphone_store_darkchat_secret); check the actual setting in CONFIG.md (install/docs/CONFIG.md in the package).
Set credentials with server-only set, never replicated setr, and keep the credential file out of shared/public files. Enter your own values; the kit must not contain credentials.
# Only for your selected remote media backend:
set jphone_s3_erisim "YOUR_ACCESS_KEY"
set jphone_s3_gizli "YOUR_SECRET_KEY"
# OR:
set jphone_fivemanage "YOUR_MEDIA_TOKEN"
| Permission | Purpose |
|---|---|
jphone.admin |
Default bridge, device and media administration permission; Config.Bridge.AdminAce can change it |
command.jphone:bridge |
Restricted command permission if running the console diagnostic as a player; the adapter admin check also applies |
jphone.acil |
Default emergency broadcast permission (Config.Notifications.EmergencyAce); grant only to authorized roles |
Do not grant every player administrator access. For in-game restricted bridge reporting, your authorized admin group can use add_ace group.admin command.jphone:bridge allow. Prefer the server console for the initial report. Exports that alter money, device ownership, forensic access or stored content are trusted server integrations; validate the caller in your own integration before invoking them.
6. Configure and verify first use
Open install/studio/jphone-studio.html (a standalone page, no server needed) in a browser. Review changes, export zz-studio.lua, place it in jphone/config/, then restart JPhone. Studio writes overrides rather than changing every base file. Retain a copy of your override file outside the resource before updates.
Review the product defaults explicitly: English (Config.Bridge.Locale = 'en'), generic phone items, empty item aliases, Config.JCloud.Domain = 'jcloud.ls' and Config.Kimlik.Migrate = false are the product defaults. CONFIG.md (install/docs/CONFIG.md in the package) lists every setting with its default. Changing the server locale does not replace a player's saved UI language. A player with no saved language starts in English (Turkish when Config.Bridge.Locale = 'tr'); the setup assistant suggests the matching region.
Command names and key-binding commands come from Config.Commands (config/komutlar.lua): phone, jphone, jmedia, crypto, musicapprove, jstore_code, jstore_review, jpalert, jphoneemergency, jphoneprop, jphone:bridge, jphone_bridgetest, jphone:migrate, closeinspection, the +jpSOS / +jpAction hold keys and the camera key commands. RegisterKeyMapping ties each player's custom key to the command name, so rename a command only before players have set their keys.
- Read startup errors for dependencies, SQL and unavailable adapters.
- In the server console run
jphone:bridge. Confirm the selected framework, inventory, bank and voice capabilities match your setup. - As an authorized administrator, run
/jphone_bridgetestafter joining; this checks an actual loaded player as well as the bridge. - Give a test phone through a trusted inventory/shop integration, or use the administrative command
/jphone give <server-id> proon the test server. Run/jphonewithout arguments to list the administrative subcommands; check them before you automate anything. - Complete setup, unlock, call another player, send a message, take/upload a photo and verify both device models.
- Transfer the physical phone to another character and reconnect: serial and device data should persist. Test emergency routing only with your test jobs on duty. SOS/crash defaults notify police/EMS phones and do not automatically call 911.
7. Update and rollback
Read CHANGELOG.md (install/docs/CHANGELOG.md in the package) and the delivered release-specific upgrade steps first. Stop JPhone, back up the database, persistent media and configuration, and replace only the phone code. Preserve the separate media resource and review overrides against the new config reference. Apply only the migration supplied for that exact release. A schema rename must use its provided migration; renaming a folder does not migrate a database.
Restart in the same order, rerun diagnostics and test a previously used phone plus a newly created phone. For rollback, restore matching code, configuration, database and media backups. Do not assume a schema migration can be rolled back by downgrading files alone.
8. Remove
Stop JPhone, remove its ensure and dedicated media write permission, and remove/revoke phone-specific ACE grants and other scripts' integrations. Decide how to handle phones still in player inventories before removing item definitions. Back up and keep the database and media until you deliberately choose deletion under your own retention policy. Removing the phone resource does not automatically remove device data. Do not drop all jphone_* tables by wildcard.