Skip to content

Troubleshooting

Common Cuxial Gang problems, with their cause and fix.

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

The resource does not start

Cause. A dependency is missing or starts later. Cuxial Gang needs OneSync, ox_lib, oxmysql and cuxial_bridge.

Fix. Enable OneSync and start the dependencies first:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
ensure cuxial_bridge
ensure cuxial_gang
The console shows a failed query on start

Cause. The database user cannot create or alter tables, or the player_vehicles table does not exist because the framework is not QBox or QBCore.

Fix. Give the user permission to create and alter tables and restart. The console prints the query, its parameters and the reason. If you prefer to create the tables by hand, use the files in install/.

/crimeadmin does nothing or is not recognised

Cause. The player lacks one of the two requirements: the group in commands.panel.restricted (group.mod by default) or the ACE in admin.ace (mod by default).

Fix. Grant both in server.cfg and restart:

server.cfg
cfg
add_ace group.mod mod allow
add_principal identifier.license:xxxxxxxx group.mod
A panel opens the cursor but shows nothing

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

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

The headquarters markers do not appear

Cause. One of these:

  • The points of the organization were never placed in the staff panel.
  • The rank of the member does not have the permission for that point.
  • The service needs an upgrade the organization has not bought.
  • The service is turned off in its file (Disable = true, or garage.disabled).

Fix. Place the points in /crimeadmin, review the rank in the boss menu and buy the upgrade.

/crimetablet does not exist

Cause. tablet.asItem is true, so the tablet only opens with the item.

Fix. Set tablet.asItem = false, or give players the item named in tablet.item.

Using the spray, the remover or the burner phone does nothing

Cause. The item does not exist in your inventory under the name set in data/graffiti.lua or data/drugselling.lua, or the inventory does not run the usable item registered by the resource. For graffiti, disabled may be true.

Fix. Add the items as shown in Installation. For the spray and the remover you can point the item at the exports cuxial_gang.useSpray and cuxial_gang.useRemover.

No buyer shows up when selling drugs

Cause. One of these:

  • The player carries no item listed in drugs of data/drugselling.lua.
  • Fewer police on duty than requiredCops.
  • The cooldown between two uses of the burner phone has not passed.

Fix. Put the drug items of your server in drugs and adjust requiredCops.

Sales never alert the police

Cause. The alert is sent through cuxial_police. Without it running, no alert is sent.

Fix. Start cuxial_police before Cuxial Gang.

Organization vehicles come out without keys

Cause. Keys are handed out through cuxial_garages. Without it running, Cuxial Gang gives no keys.

Fix. Start cuxial_garages before Cuxial Gang.

A vehicle disappeared and the garage shows it as out

Cause. The vehicle was destroyed or removed while it was out.

Fix. A member recovers it from the garage paying garage.recover.cost. After a server restart, vehicles that were out go back for free with garage.returnOnRestart = true.

The clandestine medic does not revive

Cause. The revive is done by cuxial_medical. Without it running the medic does nothing and the console says so. The organization also needs the upgrade, and the player the price in the item set in PriceItem.

Fix. Start cuxial_medical before Cuxial Gang and check the upgrade and the money.

The cloakroom cannot save or wear outfits

Cause. The cloakroom reads and applies clothes through cuxial_appearance. Saving and deleting also need the boss menu permission.

Fix. Start cuxial_appearance, or set clothingScript = 'tgiann_clothing' in data/clothing.lua with tgiann-clothing running.

The arsenal or the favela bench does not exist

Cause. Both are built on nextgenfivem_crafting. Without it running there are no benches. With it, the bench type and recipes are created on start, but the benches themselves are placed by staff in the editor of that resource.

Fix. Start nextgenfivem_crafting before Cuxial Gang and place a bench of the type named in benchType.

The premium season pass cannot be bought

Cause. seasonPass.customCurrency is true, or the organization does not have the price in its clean balance.

Fix. Set seasonPass.customCurrency = false and fund the clean balance. The price is edited in the staff panel.

/startraid does not exist

Cause. Raids are disabled by default.

Fix. Set enable = true in data/raids.lua and add your police jobs to allowedJobs.

A raid cannot be started

Cause. One of the limits of data/raids.lua: the hour is outside raidTime, the job or the organization is on cooldown, there are not enough players online, the grade is too low, or adminMode.enable is true and staff have not approved it.

Fix. Review those options. With admin mode on, staff approve with /approveraid <jobname> <gangid>.

Using adrenaline does nothing

Cause. The item does not point to the server export, or a condition is not met. The on-screen notice says which: the user is not an organization member, nobody is downed within use.distance metres, someone is in a vehicle, or the gang or the member has reached its use limit.

Fix. Define the item with server = { export = 'cuxial_gang.adrenaline' } as in Installation, and check the limits in the Adrenaline section of the staff panel.

The adrenaline scene ends but the player stays down

Cause. No resource can revive: cuxial_medical is not running (or qb-ambulancejob on QBCore). The console warns about it and the injector gets "The injection failed".

Fix. Start cuxial_medical before Cuxial Gang.

/adr_a does not respond

Cause. The group in restricted or the framework permission in permission is missing, both in data/adrenaline.lua. It also fails while you are in a vehicle.

Fix. Give staff the group.admin group and the framework permission admin, or change both values in the file.

No airdrop ever falls

Cause. enabled is false in data/airdrop.lua, the hour is outside SpawnTimeWindow, or there are no usable sites.

Fix. Check the sites in the staff panel and launch one by hand with /startAirDrop to test. The console says why a launch failed.

Schedules run at the wrong hour

Cause. timeZone is not the zone of your server, or the time API did not answer and the machine clock is being used. The console says which on start.

Fix. Set timeZone to your IANA zone. To skip the API and always use the machine clock, set timeApi = ''.

Logs do not reach Discord

Cause. The convar is empty or has a different name from logs.general or logs.admin.

Fix. Add the convars to server.cfg before the resource starts. They are read once, on start:

server.cfg
cfg
set cuxial_gang_webhook "https://discord.com/api/webhooks/..."
set cuxial_gang_webhook_admin "https://discord.com/api/webhooks/..."

With debug on, the console says whether each webhook is configured.

Stashes do not open, or searching a player does nothing

Cause. The inventory is not ox_inventory. Stashes and player search are built on it.

Fix. Use ox_inventory.

The interaction key does nothing

Cause. The player is not in an organization, nobody is within range, or rope.enabled is false. A changed rope.keybind.key only applies to players who join for the first time.

Fix. Check the organization and the distance. Players rebind the key in the GTA settings, under key bindings for FiveM.

© Cuxial