Skip to content

Commands & permissions

Commands, keys and permissions of Cuxial PvP, and how to draw Gun Game zones.

Player commands are open to everyone. Only saving a zone needs a permission.

Commands ​

CommandWhoWhat it does
/CuxiallEveryoneOpens the menu. Not available during a match.
/exitduelPlayers in a matchLeaves the current match. Can be used once every 5 seconds.
/pvpzone gungame <name>Staff with cuxialpvp.zonesOpens the zone tool to draw a Gun Game zone.

The three names can be changed in commands of data/config.lua.

What /exitduel does depends on the game mode:

  • Duel. The match ends for everyone. Bets are refunded and the match does not count for the leaderboard.
  • Gun Game. Only that player leaves. The match goes on while 2 players remain.

Keys ​

Every key below can be rebound by each player in the FiveM key settings.

KeyWhenWhat it does
UnassignedAny timeOpens the menu. Listed as "Open CuxiaPvP".
TAB (hold)In a matchShows the scoreboard.
← →Dead in a duelSwitches the camera between teammates.
← →SpectatingSwitches the camera between players.
BackspaceSpectatingStops spectating.

Zone tool ​

Gun Game is played inside zones drawn in game.

/pvpzone gungame Harmony

The command opens a free camera. Aim at the ground and build the outline point by point:

KeyWhat it does
Left clickAdds a corner where you aim.
Right clickRemoves the last corner.
Mouse wheelRaises or lowers the ceiling.
↑ ↓Raises or lowers the floor.
EnterSaves the zone.
BackspaceCancels.

A zone needs at least three corners. Once saved it joins the rotation at once, with no restart, and is written to data/gungame_zones.lua.

The zone tool cannot be opened during a match.

Permissions ​

PermissionTypeGrants
cuxialpvp.zonesACESaving zones drawn with /pvpzone.
server.cfg
cfg
add_ace group.admin cuxialpvp.zones allow

The name of the permission can be changed in zoneToolAce of data/config.lua.

Everything else depends on the player's situation:

ActionRequirement
Create a lobbyNot hosting another lobby, and the server below limits.maxLobbies
Assign players and start the matchBe the host of the lobby
Join a lobbyNot be in a match, know the password if there is one, and room left
SpectateNot be in a match, and the match created with spectators on
BetEnough cash, and no previous bet on that match

© Cuxial