Skip to content

Troubleshooting

Common Cuxial License problems, with their cause and fix.

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

The resource does not start

Cause. A dependency is missing or starts later. Cuxial License needs ox_lib, oxmysql, cuxial_bridge and screencapture. The last one is the usual culprit: it is not part of a default server.

Fix. Install screencapture as explained in Installation and start everything in order:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
ensure cuxial_bridge
ensure screencapture
ensure cuxial_license_map
ensure cuxial_license
"The photo studio is not loaded."

Cause. cuxial_license_map is not started, or it was renamed and photo.mapResource still has the old name.

Fix. Copy cuxial_license_map from the package, add ensure cuxial_license_map before ensure cuxial_license and restart the server. If you renamed it, put the new name in photo.mapResource.

The photo has the scenery behind the character

Cause. The player was not in front of the green backdrop: photo.greenScreenPos points somewhere else, or the studio map is incomplete.

Fix. Restore the default greenScreenPos, or copy cuxial_license_map again from the original package, and restart the server.

The capture never finishes, or the console shows an error about screencapture

Cause. screencapture is running from the source code instead of a packaged release, its folder has another name, or the server artifact is too old for it.

Fix. Download the packaged release again, make sure the folder is called screencapture and contains game/dist, and update the server artifact.

Cards are issued without a photo, or "Photos are not available right now."

Cause. One of these:

  • The convar cuxial:fivemanageToken is empty, misspelled or written with setr in another file.
  • The token is not valid for images, so the upload is rejected.
  • photo.enabled is false.

Fix. Add the convar above ensure cuxial_license and restart the server:

server.cfg
cfg
set cuxial:fivemanageToken "YOUR_FIVEMANAGE_TOKEN"

Cards issued without a photo keep having none. Issue them again once the token works.

I changed shared/config.lua and nothing happens

Cause. After the first start, the live sections (jobs, documents, payment, showRadius, issuing, store, display, photo, idCheck, fakeId) are read from the database, and the offices from the panel.

Fix. Change the value in /license → Settings or Jobs and factions. To take the file values, restart the resource and press Factory on that section. Offices are edited in Offices. See Where each value comes from.

Using the card does nothing, or "This document has no holder data."

Cause. One of these:

  • The item is not defined with client.export = 'cuxial_license.useLicenseCard'.
  • The card design uses another item name and that item has no definition.
  • The resource folder was renamed, so the export no longer exists.
  • The item was spawned by hand. Only cards issued by the script carry the data needed to show them.
  • The card design was deleted.

Fix. Review the items in Installation, keep the folder name cuxial_license, and issue the card through an office, /jobissue or an export. A staff member can also reprint it from Issued.

The ID card was not created on first start

Cause. The item of issuing.defaultIdCard (id_card by default) did not exist in the inventory. The console shows an error with the item name.

Fix. Add the item to ox_inventory, restart the inventory and then Cuxial License. The card is created on the next start if no design uses that item yet.

/license is denied

Cause. The player lacks the framework permission in admin.permission.

Fix. Give the player that permission in your framework, or change admin.permission to one they have.

"Your job is not authorized for this action."

Cause. The player's job is not in jobs.authorized (for /jobissue) or in jobs.authorized / jobs.idCheck (for /checklicense), or their grade is below the minimum. The example values ask for high grades.

Fix. Set the job and grade in /license → Jobs and factions. The key is the job name, not its label.

"Your job cannot manage that card."

Cause. The card has Jobs that can issue (or Restrict to job) and the player's job is not in the list. Revoking also needs a job in jobs.revoke.

Fix. Add the job to the card in the designer, or to jobs.revoke for revoking.

The office NPC is missing or cannot be interacted with

Cause. The office is disabled, its position or model is wrong, it is limited to other jobs, or no interaction resource is running. Without cuxial_interactions the NPC needs a target resource supported by cuxial_bridge.

Fix. Check the office in /license → Offices (enabled, position, model, jobs), and start cuxial_interactions or a target resource before cuxial_license.

"The office is closed right now."

Cause. The office has hours and the game hour is outside them.

Fix. Wait for the opening hour, widen the hours in Offices, or remove them to keep the office always open.

The store shows no documents

Cause. One of these:

  • The office has no cards in its list.
  • The cards are not Active, or have Restrict to job on.
  • The player does not meet the card's Requirements ("You do not meet the requirements for this document.").
  • The store was opened without an office and the cards do not have Charge money on.

Fix. Add the cards to the office in Offices, and review Rules in the designer.

The player never gets the photo request, or "Photo session expired."

Cause. The player already had a request pending or a panel open, or issuing.photoTimeout seconds went by.

Fix. Ask the player to close what they have open and issue the card again. Raise issuing.photoTimeout if players need more time.

Badges are not issued from the MDT

Cause. The reason returned tells which one:

  • card_not_found: there is no design with the Badge size and the faction's item.
  • wrong_job / unknown_faction: the holder's job is not in any faction of documents.badges.
  • not_allowed: the job of the agent is not in jobs.authorized.
  • invalid_item: the badge item does not exist in the inventory.

Fix. Create the badge design in /license with the faction's item, and review the factions in Jobs and factions.

The fake ID panel does not open

Cause. fakeId.enabled is false ("The fake ID generator is disabled."), the player's job is not in fakeId.jobs, they lack fakeId.requiredItem ("You are missing the materials to forge the document."), or the cooldown is running.

Fix. Turn the generator on in Settings, create the fake_id item, and review jobs, item and cooldown.

Nearby players do not see the card I show

Cause. They are further than showRadius, or they are already looking at another card.

Fix. Get closer or raise showRadius.

The wanted and dangerous marks never appear

Cause. They come from cuxial_police, and it is not running.

Fix. Start cuxial_police. Without it the cards are shown with no marks.

Documents disappeared after deleting a card design

Cause. Deleting a design removes every document issued from it.

Fix. It cannot be undone from the game. Restore a database backup, or create the design again and issue the cards again. To retire a card, turn Active off instead of deleting it.

Database errors when the resource starts

Cause. The database user cannot create or alter tables.

Fix. Run sql/install.sql by hand. When updating from 2.x, also run sql/migrate_2_1_0.sql, migrate_2_2_0.sql and migrate_3_0_0.sql in that order. Then restart the resource.

The panels do not open

Cause. The interface is not loading. The folder web/build is missing or incomplete, usually after a partial upload.

Fix. Make sure web/build/index.html and web/build/assets exist inside the resource. If they do not, copy the resource again from the original package and restart the server.

Texts appear in the wrong language

Cause. The script follows the ox:locale convar.

Fix. Set it in server.cfg and restart. en and es are included:

server.cfg
cfg
setr ox:locale "en"

© Cuxial