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_liboxmysql, connected to your databasecuxial_bridge2.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_targetorqb-target) if your NPCs useinteraction = 'target', which is the default
Optional resources:
object_gizmoplaces and rotates NPCs with a gizmo from the panel.cuxial_appearancedresses the NPCs with a player look.cuxial_medicalis called by the "Revive" action to revive the player.bl_spritesenables the key prompt mode (interaction = 'sprite').ox_inventoryprovides 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:
| Table | Holds |
|---|---|
cuxial_interactions_defs | The NPCs created in the panel |
cuxial_interactions_seed | Which rows of the seed file were already installed |
cuxial_interactions_audit | The history of changes |
cuxial_interactions_limits | What 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).
add_principal identifier.license:xxxxxxxxxxxxxxxx group.adminSee Commands & permissions for details.
Set the convars
Both are optional.
# 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.
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 hereCheck that it works
- Start the server. The console prints how many example NPCs the seed installed.
- Join, type
/interactionsand switch on the city guide. - Press the button to go to it and aim at the NPC with your target: the option to talk shows up.
- Select it. The camera moves to the NPC and the dialogue opens.
- Press 1 to pick the first button, or Esc to close.
Next: learn the panel in the Features guide.
