Skip to content

Troubleshooting

Common Cuxial PvP problems, with their cause and fix.

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

The resource does not start

Cause. A dependency is missing or starts later than the script. Cuxial PvP needs OneSync, ox_lib and cuxial_bridge.

Fix. Enable OneSync and start the dependencies first:

server.cfg
cfg
ensure ox_lib
ensure cuxial_bridge
ensure CuxiaPvP
The export fails with "No such export"

Cause. The folder was renamed. The exports are called through the resource name.

Fix. Keep the folder as CuxiaPvP, or use your new folder name in every call: exports.<folder>:toggleUI(true).

No key opens the menu

Cause. The menu key has no default binding, so it does not collide with other resources.

Fix. Use /Cuxiall, bind "Open CuxiaPvP" in the FiveM key settings, or open the menu from your own resource with exports.CuxiaPvP:toggleUI(true).

The command runs but no menu appears

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

Fix. Copy the resource again from the package you downloaded, making sure web/build is uploaded in full, then restart the resource.

Players start a duel with no weapon

Cause. The weapon chosen does not exist on your server. The weapons in data/weapons.lua are examples and include add-on weapons.

Fix. Leave in data/weapons.lua only weapons your server has, and add their pictures to web/build/weapons. Do the same with ladder and finisher in data/gungame.lua.

Players fall through the map when a duel starts

Cause. The map uses coordinates of an arena that is not on your server. The maps in data/maps.lua are examples.

Fix. Replace the spawn points of each map with coordinates of your own arenas, or remove the maps you do not have.

Players stay dead between rounds or after the match

Cause. The events in revive.events do not belong to your ambulance script, or revive.enabled is false.

Fix. Put the client revive event of your ambulance script in revive.events and set revive.enabled = true. See Configuration.

The time of day does not change, or stays frozen after the match

Cause. weatherSystem does not match the time script you run.

Fix. Set weatherSystem = 'av' for av_weather or 'cd' for cd_easytime in data/config.lua.

"No zones configured for this game mode" when creating a Gun Game

Cause. data/gungame_zones.lua has no zones.

Fix. Draw one in game with /pvpzone gungame <name>. See Commands & permissions.

"Could not save the zone"

Cause. The player does not have the ACE permission, or the zone has fewer than three corners.

Fix. Grant the permission and draw the zone again:

server.cfg
cfg
add_ace group.admin cuxialpvp.zones allow
"cuxial_bridge or its zone tool is missing"

Cause. The installed cuxial_bridge is older than the one delivered with the script.

Fix. Update cuxial_bridge to the version included in your download and restart the server.

A map, weapon or zone shows no picture

Cause. The picture is missing or its name does not match the value of the entry.

Fix. Name the file exactly like the value, upper and lower case included:

EntryPicture
Mapweb/build/maps/<value>.png
Duel weaponweb/build/weapons/<value>.png
Gun Game zoneweb/build/zones/<value>.webp

Ladder weapons of Gun Game take their icon from ox_inventory.

Everyone shows the default Discord avatar

Cause. discord.botToken is empty or not valid. Players without a linked Discord account always show the default avatar.

Fix. Create a bot in the Discord developer portal and paste its token in discord.botToken of data/config.lua. The bot needs no permissions.

A player cannot place a bet

Cause. Bets are paid in cash, and each player can bet once per match.

Fix. The player needs the amount in cash, not in the bank.

"You already have a lobby open" or "No room for more lobbies right now"

Cause. The limits of data/config.lua were reached.

Fix. Raise limits.maxLobbiesPerHost or limits.maxLobbies. See Configuration.

The leaderboard is empty after every restart

Cause. leaderboard.clearOnRestart is true.

Fix. Set it to false in data/config.lua.

© Cuxial