Skip to content

Troubleshooting

Common Cuxial Police problems, with their cause and fix.

The most frequent problems after installing Cuxial Police, with the cause and the fix for each one.

The resource does not start

Cause. A dependency is missing or starts later. Cuxial Police needs ox_lib, oxmysql, cuxial_bridge and pma-voice.

Fix. Start the dependencies first:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
ensure pma-voice
ensure cuxial_bridge
ensure cuxial_police
The tablet says I am not police, or does not open

Cause. Your job is not in any faction. The defaults only know the jobs listed in policeJobs, emsJobs and addons.fib.jobs.

Fix. Add your job names in section config.jobs of the settings tab (and config.fib for the federal addon). If nobody can open the tablet yet, edit install/defaults/config.lua before the first start, or give a staff member one of the default jobs to make the change.

I edited install/defaults and nothing changed

Cause. Those files are factory values. After the first start the server reads its settings from the database.

Fix. Change the value in the settings tab. To apply a file edit, restart the resource and press the factory values button of that section.

I do not see the settings tab

Cause. The tab is shown only to players with the admin permission of your framework.

Fix. Give your account that permission. You also need a faction job to open the tablet.

A change in the settings tab is not applied until a restart

Cause. Some sections are read only at start: radio (config.radio, data.radio, data.radioaudio), keys (data.keybinds), fingerprint.closeKey, the surrender cancel key, and enabled and devices.items of the federal addon.

Fix. Restart the resource after saving one of those sections.

I changed a default key and players still have the old one

Cause. FiveM stores the key of each player the first time the binding is registered. A new default only reaches players who never had the binding.

Fix. Each player changes it in the FiveM key binding settings.

The quick menu does not open

Cause. The player is not on duty, or the job is not in a faction.

Fix. Go on duty at a station point of type duty or from the tablet. If there is no duty point yet, create one in section config.stations.

Station points, payment points or fingerprint scanners cannot be used

Cause. They are target zones created through cuxial_bridge. No supported target resource is running, or the point is limited to another faction, a higher grade or on-duty members.

Fix. Start your target resource before cuxial_bridge, and check faction, minGrade and onDuty of the point.

An armoury does not open

Cause. Armouries are shops of ox_inventory and are registered only when it is running.

Fix. Start ox_inventory before Cuxial Police. Entries without an item name are ignored.

Using the tablet item or a medicine does nothing

Cause. The item is missing from the inventory, or the resource folder was renamed. The items call exports named cuxial_police.<item>.

Fix. Copy install/items.lua into ox_inventory/data/items.lua, keep the folder name cuxial_police and restart the inventory.

The surveillance items cannot be used

Cause. fib_camera, fib_mic and fib_gps are not in install/items.lua, or the addon is disabled. Their exports are registered only with addons.fib.enabled = true.

Fix. Add the three items from the Installation page and enable the addon. Changing the item names in devices.items needs a restart.

Photos fail to upload

Cause. The upload token is not set, screencapture is not running, the upload address is wrong, or the image is larger than photo.maxUploadBytes.

Fix. Start screencapture, set the token and restart the resource:

server.cfg
cfg
set cuxial:fivemanageToken "your_token"

Check photo.uploadUrl in section config.photo.

Nobody hears the radio

Cause. pma-voice is not running, radio.enabled is false, or the players are tuned to different frequencies.

Fix. Start pma-voice before Cuxial Police and check section config.radio. Radio sections need a restart after a change.

Gunshot alerts never arrive

Cause. Cuxial Police does not detect shots. It waits for the cuxial:gunshot event from your weapons resource.

Fix. Trigger the event as shown in Exports & events. Check also that the weapon is not in data.gunshotwhitelist and that dispatch.enabled is true.

/paymultas or /payfacturas do nothing

Cause. The payment commands are off by default. Fines and bills are paid at the payment points.

Fix. Set payment.commands = true in section config.payment of the settings tab, and keep payment.enabled = true.

Fines are paid but the faction account receives nothing

Cause. The deposit goes through cuxial_banking. Without it the citizen is charged and no account is credited.

Fix. Start cuxial_banking and check the account names in section config.revenue.

The EMS quick menu actions do nothing

Cause. Examine, CPR, heal and the stretcher actions call cuxial_medical.

Fix. Install and start cuxial_medical.

Medicines are never blocked by a medical condition

Cause. That check uses an inventory hook that only ox_inventory provides. The console says so at start with any other inventory.

Fix. Use ox_inventory.

The organisations tab of the federal addon is empty

Cause. Organisations come from the resource set in addons.fib.gangResource. It is not running, or the name is wrong.

Fix. Start that resource before Cuxial Police and check the name in section config.fib.

The Forensics tab is missing, or says the forensic system is unavailable

Cause. evidence.enabled is false, the player's faction is not in evidence.factions, or the resource set in evidence.resource is not running or has another name.

Fix. In section config.evidence, enable the faction and set the exact folder name of your evidence system. Start that resource before Cuxial Police. If the tab shows but says you have no access, check the evidence and fib_evidence groups in data.permissions.

Documents do not link to reports

Cause. sd-computers is not running, the player lacks the reports.edit permission, or the report already has 20 documents.

Fix. Start sd-computers and check that cuxial_bridge is 2.18.0 or later. Lower the grade of reports.edit in data.permissions if needed, or unlink a document from the report.

Changing a rank from staff management fails on QBCore

Cause. Rank changes add a job to the player without replacing the others, which requires multi-job support in the framework. cuxial_bridge reports it in the console.

Fix. Use QBox, or a QBCore setup with multi-job support.

The console shows schema errors at start

Cause. The database is too old for generated columns, or the database user cannot alter the characters and vehicles tables.

Fix. Use MySQL 5.7 or newer, or MariaDB 10.2 or newer, and give the user permission to create and alter tables. The lines that start with [cuxial_police][mysql] name the table and column that failed.

The tablet stays blank or the interface does not load

Cause. The interface files are missing or incomplete.

Fix. Copy the resource again from the package you downloaded, replacing the whole folder, and restart it.

© Cuxial