Skip to content

Installation

Install Cuxial Dance Class step by step: dependencies, start order and a first test class.

Cuxial Dance Class needs no SQL import, no inventory items and no convars of its own. It creates its table on first start.

Check the dependencies ​

These resources must be installed and working first:

  • ox_lib
  • oxmysql
  • cuxial_bridge, with one of the supported frameworks: QBox, QBCore or ESX
  • cuxial_emotes

Cuxial Emotes is required. Every dance comes from its dance catalog, and the resource will not start without it.

cuxial_gym is optional. When it is running, dance points raise a gym skill. Without it, classes work the same and no skill is raised.

Copy the resource ​

Place the cuxial_danceclass folder inside your resources directory. Keep the folder name as it is.

Start the resource ​

Start it after its dependencies and after your framework:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
# your framework here (qbx_core, qb-core or es_extended)
ensure cuxial_bridge
ensure cuxial_emotes
# optional
ensure cuxial_gym
ensure cuxial_danceclass

No SQL to run. The resource creates the table cuxial_danceclass_history when it starts.

The texts follow the ox:locale convar. en and es are included:

server.cfg
cfg
setr ox:locale "en"

Check that it works ​

You need two players for a full test.

  1. Type /danceclass. The panel opens.
  2. Press the button to draw the zone, place at least three points around you and save. The controls are shown on screen while you draw.
  3. Fill in the name and difficulty, leave the fee at 0 and open the class. The panel closes and a side card shows the class.
  4. With the second player, walk into the zone. They join and appear in the card.
  5. As the instructor, press F6. After the countdown both characters dance and the student gets the notes to press.
  6. When the dance ends, the results table appears. End the class from the panel to see the podium.

Next: decide who can teach and how classes behave in Configuration.

© Cuxial