Skip to content

Installation

Install Cuxial Interactions step by step: dependencies, database, example NPCs, convars and start order.

Cuxial Interactions creates its own tables on the first start and adds no inventory items.

Check the dependencies ​

These resources must be installed and working first:

  • ox_lib
  • oxmysql, connected to your database
  • cuxial_bridge 2.25.0 or later, with one of the supported frameworks: QBox, QBCore or ESX
  • OneSync enabled on the server
  • A target resource (sleepless_interact, ox_target or qb-target) if your NPCs use interaction = 'target', which is the default

Optional resources:

  • object_gizmo places and rotates NPCs with a gizmo from the panel.
  • cuxial_appearance dresses the NPCs with a player look.
  • cuxial_medical is called by the "Revive" action to revive the player.
  • bl_sprites enables the key prompt mode (interaction = 'sprite').
  • ox_inventory provides the item images of the shop (shop.image).

The player look requires QBox or QBCore. On ESX those NPCs spawn with their model, or with npc.fallbackModel.

Copy the resource ​

Place the cuxial_interactions folder inside your resources directory. Keep the folder name as it is: other resources call its exports by that name.

Database ​

Nothing to import. On the first start the resource creates four tables and adds any missing column on later updates:

TableHolds
cuxial_interactions_defsThe NPCs created in the panel
cuxial_interactions_seedWhich rows of the seed file were already installed
cuxial_interactions_auditThe history of changes
cuxial_interactions_limitsWhat each player bought and sold, for the shop limits

If your database user cannot create tables, run install/cuxial_interactions.sql by hand before the first start. It has the same structure.

Example NPCs ​

With seed.enabled = true, the first start installs the NPCs of install/examples.sql: a city guide with a dialogue of several pages in Legion Square, a buyer in Vinewood and a paid doctor at Pillbox. All three are switched off.

Each row is installed only once. An NPC you delete in the panel is not installed again on the next start.

Open /interactions, switch on the examples you want and change their coordinates, texts and items, or delete them.

Give staff access ​

The panel is opened with /interactions. The player needs the ACE group of commands.admin.restricted (group.admin by default) and the framework permission of admin.permission (admin by default).

server.cfg
cfg
add_principal identifier.license:xxxxxxxxxxxxxxxx group.admin

See Commands & permissions for details.

Set the convars ​

Both are optional.

server.cfg
cfg
# Language of the interface and the notifications (en and es are included)
setr ox:locale "en"

# Debug traces in the console
setr cuxial_interactions_debug "0"

Use setr, not set: the debug convar is read on the client as well as on the server.

Start the resource ​

Start it after its dependencies, after your framework, your inventory and your target resource. Resources that register their own NPCs go after it.

server.cfg
cfg
ensure ox_lib
ensure oxmysql
# your framework here (qbx_core, qb-core or es_extended)
ensure ox_inventory
ensure cuxial_bridge
# your target resource (sleepless_interact, ox_target or qb-target)
ensure ox_target
# optional
ensure object_gizmo
ensure cuxial_appearance
ensure cuxial_medical
ensure cuxial_interactions
# resources that register NPCs through the exports go here

Check that it works ​

  1. Start the server. The console prints how many example NPCs the seed installed.
  2. Join, type /interactions and switch on the city guide.
  3. Press the button to go to it and aim at the NPC with your target: the option to talk shows up.
  4. Select it. The camera moves to the NPC and the dialogue opens.
  5. Press 1 to pick the first button, or Esc to close.

Next: learn the panel in the Features guide.

© Cuxial