Skip to content

Cuxial Interactions

NPCs with dialogue and a buy-and-sell shop for FiveM, managed live from an in-game panel, plus an API so other resources can register their own.

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 ​

ResourceRequiredUsed for
OneSyncYesDistance checks on the server
ox_libYesCallbacks, commands, notifications, locales, input dialogs
oxmysqlYesStores the NPCs, the history and the shop limits. Reads player appearances for NPCs with a player look
cuxial_bridge 2.25.0 or laterYesConnects to your framework (QBox, QBCore or ESX), inventory, money and target resource
sleepless_interact, ox_target or qb-targetFor interaction = 'target'The option the player aims at to talk to the NPC
ox_inventory or qb-inventoryThrough Cuxial BridgeItem counts, labels and images of the shop. Any other inventory can be connected through the hooks
object_gizmoNoPlaces and rotates NPCs with a gizmo from the panel. Without it, use "Here" or type the coordinates
cuxial_appearanceNoDresses the NPCs with a player look. Without it they keep the base model
cuxial_medicalNoRevives the player in the paid "Revive" action. Without it the action answers that the doctor is unavailable and charges nothing
bl_spritesNoEnables 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 ​

© Cuxial