Cuxial Interactions places NPCs in the world that talk to the player through a dialogue window, buy and sell items, and run actions from their buttons. Staff create and edit them live from the /interactions panel; your other resources can register their own through exports, so every conversation on the server looks and behaves the same.
What it does
- In-game panel. Create, edit, duplicate, switch on and off and delete NPCs from
/interactions. Changes reach every player at once and are stored in the database. - Dialogues with pages and buttons. Each button runs a list of actions: go to a page, close, open the shop, play an NPC speech line, teleport, run a command, call an export or trigger an event on the client or on the server, or revive the player for a fee.
- Fields asked to the player. A command, export or event action can ask the player for up to four values before it runs. The server validates them.
- Buy and sell shops. Each item is bought from the player, sold to the player, or both, with its own price. Distance, quantity and price are checked on the server.
- Limits over time. Caps per player or shared by everyone, in units or in money, over a sliding window: "30 per day", "5000 per week".
- Conditions per NPC and per button: job and minimum grade, items carried, and opening hours by game time or real time.
- Camera on the NPC while the conversation is open, with the player hidden.
- NPCs with the look of real players. An NPC can take the appearance of a random active character.
- History and SQL export. Every change is logged with who made it. An NPC can be exported as SQL and installed on another server.
- Open hooks to connect your own inventory, economy, notifications or medical system.
- API for other resources: register an NPC with its own ped, attach a dialogue to a ped that already exists, open a dialogue or a shop directly, and register shops on the server.
Requirements
| Resource | Required | Used for |
|---|---|---|
| OneSync | Yes | Distance checks on the server |
ox_lib | Yes | Callbacks, commands, notifications, locales, input dialogs |
oxmysql | Yes | Stores the NPCs, the history and the shop limits. Reads player appearances for NPCs with a player look |
cuxial_bridge 2.25.0 or later | Yes | Connects to your framework (QBox, QBCore or ESX), inventory, money and target resource |
sleepless_interact, ox_target or qb-target | For interaction = 'target' | The option the player aims at to talk to the NPC |
ox_inventory or qb-inventory | Through Cuxial Bridge | Item counts, labels and images of the shop. Any other inventory can be connected through the hooks |
object_gizmo | No | Places and rotates NPCs with a gizmo from the panel. Without it, use "Here" or type the coordinates |
cuxial_appearance | No | Dresses the NPCs with a player look. Without it they keep the base model |
cuxial_medical | No | Revives the player in the paid "Revive" action. Without it the action answers that the doctor is unavailable and charges nothing |
bl_sprites | No | Enables interaction = 'sprite' (a key prompt on the NPC). Without it the NPC uses the target |
The player look requires QBox or QBCore: it reads the tables appearance and players. On ESX, give those NPCs a model, or adapt the hook fetchSkins to your own tables.
Pages
InstallationDependencies, database, example NPCs and start order.Features guideThe
/interactions panel, button actions, shops and limits.ConfigurationEvery option in shared/config.lua.Commands & permissionsThe staff panel, keys of the dialogue and who can talk to each NPC.Exports & eventsRegister your own NPCs, dialogues and shops, and customise the hooks.TroubleshootingCommon problems and how to fix them.