The most frequent problems after installing Cuxial Interactions, building NPCs in the panel or registering your own, with the cause and the fix for each one. Console warnings of the resource start with [cuxial_interactions].
The resource does not start
Cause. A dependency is missing or starts later. Cuxial Interactions needs OneSync, ox_lib, oxmysql and cuxial_bridge 2.25.0 or later.
Fix. Enable OneSync, update Cuxial Bridge if needed and start the dependencies first:
ensure ox_lib
ensure oxmysql
ensure cuxial_bridge
ensure cuxial_interactionsNo NPC appears and the console says there is no database
Cause. oxmysql is not connected, or the database user cannot create the tables. Without the database no NPC of the panel is loaded.
Fix. Check the mysql_connection_string of your server.cfg. If your user has no CREATE permission, run install/cuxial_interactions.sql by hand and restart the resource.
/interactions does nothing
Cause. The player lacks one of the two permissions: the ACE group of commands.admin.restricted (group.admin) or the framework permission of admin.permission (admin). If the second fails, the command runs but the panel does not open.
Fix. Add the player to the group and give them the framework permission:
add_principal identifier.license:xxxxxxxxxxxxxxxx group.adminCheck also that commands.admin.name is the command you type.
The example NPCs are not in the world
Cause. They are installed switched off. If they are not in the panel list either, seed.enabled is false, the file in seed.file does not exist, or they were deleted before: a deleted row is not installed again.
Fix. Switch them on in /interactions. To get a deleted example back, delete its row in cuxial_interactions_seed and restart the resource.
An NPC does not appear
Cause. One of these:
- It is switched off in the panel.
- The player does not meet its conditions (jobs, items or schedule).
- The player is further than its spawn distance (60 metres by default).
- The ped could not be created. The client console shows a warning with the id of the NPC.
Fix. Open it in /interactions, check the Active switch and the Conditions tab, and use Go to stand next to it. A model that does not exist is replaced by npc.fallbackModel.
The NPC is there but there is no option to talk
Cause. One of these:
- No target resource is running, or it starts after Cuxial Bridge.
- The NPC uses "None" as trigger (
interaction = 'none'). - A dialogue or shop is already open.
Fix. Start sleepless_interact, ox_target or qb-target before cuxial_bridge and cuxial_interactions. NPCs with "None" only open through the Interact export.
I chose Sprite and the target is still used
Cause. bl_sprites is not running. The client console shows a warning once. Points without a ped always use the target.
Fix. Install and start bl_sprites before Cuxial Interactions, or go back to Target.
"Place" does not open the gizmo
Cause. object_gizmo is not started. The panel shows a notice.
Fix. Start object_gizmo, or use Here to take your position, or type the coordinates.
"Another staff member saved first" when saving
Cause. Someone saved the same NPC while you were editing it. The panel does not overwrite their changes.
Fix. Copy what you changed, reload the NPC and apply your changes again.
A button says "This interaction has changed, talk again"
Cause. The NPC was saved in the panel while the player had the dialogue open.
Fix. Close the dialogue and talk to the NPC again.
A button says "The resource for this action is not started"
Cause. An export or event action points at a resource that is not running. The panel list marks those NPCs.
Fix. Start that resource, or edit the action. Use Test in the panel to check it.
The NPC floats or sinks into the ground
Cause. The ped is created at the Z of its coordinates plus npc.zOffset, which is -1.0. That fits coordinates taken from the player's position, as Here does. Coordinates taken at ground level leave the ped one metre low.
Fix. Use Here or Place, or correct the Z of that NPC. Change npc.zOffset only if all your coordinates use another reference.
NPCs with a player skin all look like the default ped
Cause. One of these:
- The resource in
skins.resourceis not running, so the appearance cannot be applied. - No character was played in the last
skins.activeDaysdays. The server console shows a warning and tries again afterskins.retryseconds. - The server runs ESX. The player look requires QBox or QBCore.
Fix. Start cuxial_appearance before Cuxial Interactions and raise skins.activeDays on a new server. On ESX, choose a model for those NPCs or adapt the hook fetchSkins.
The shop says it is not available
Cause. The shop is not registered on the server. In the panel, the NPC is switched off or its shop has no items. From another resource, RegisterShop was never called, its id differs from shop.id on the client, or the registration was rejected (an item without a valid price, an empty list, a wrong mode or limit, no location). A rejected registration leaves a warning in the server console.
Fix. In the panel, add at least one item and save. From code, call RegisterShop with the same id the client uses.
"You are too far from the buyer" while standing next to the NPC
Cause. The server measures the distance to the coordinates of the shop, not to the ped. They are too far from where the player stands, or the distance is too short for that spot.
Fix. Move the NPC in the panel and save, or raise the distance of its shop. From code, register the shop with the coordinates of the NPC. shop.maxDistance changes the default for all shops.
The sale fails with "You don't have enough of this item"
Cause. The server counts fewer units than the quantity requested. The item name of the shop does not match the item in your inventory, or the items left the inventory while the shop was open.
Fix. Pick the item with the search of the panel, or check that each name is the exact item name of your inventory.
"You've reached the limit" or "Nothing left for now"
Cause. A limit of the item or of the shop is full. "Nothing left" is a global limit, shared by all players.
Fix. Wait for the window to free up, raise the limit in the Shop tab, or press Reset limits. From code, use ResetShopLimits. To switch every limit off, set limits.enabled = false.
Item images are missing in the shop
Cause. shop.image points to the image folder of ox_inventory, and your inventory is another one or stores images elsewhere.
Fix. Point shop.image to the folder of your inventory, give each item an image in the panel, or change the hook itemImage.
The Revive action says the doctor cannot attend the player
Cause. One of these:
- The resource in
maria.reviveis not running, or its export did not revive the player. In the first case nothing is charged; in the second the money is returned. - The player is not down.
maria.maxOnDutyparamedics or more are on duty, and the action does not ignore them.- The player is further than
maria.maxDistancefrom the NPC.
Fix. Start cuxial_medical, or point maria.revive to the server export of your medical resource; it is called with the player's server id and must return true. To attend whatever the paramedics on duty, tick "Ignore on-duty EMS" in the action.
My NPCs disappear after restarting cuxial_interactions
Cause. Restarting the resource wipes every NPC and shop registered by other resources through the exports. NPCs of the panel are not affected.
Fix. Register again on the cuxial_interactions:ready event, on both sides:
-- client
AddEventHandler('cuxial_interactions:ready', registerNpc)
-- server
AddEventHandler('cuxial_interactions:ready', registerShop)Register returns false
Cause. One of these:
- The id is already taken by another resource or by an NPC of the panel. The console says which one.
- The definition has none of
coords,entityandnetId. - The definition has
enabled = false. idis not a string or is empty.
Fix. Prefix your ids with the name of your resource and give the point a location.
The dialogue takes a moment to open
Cause. The window waits camera.settle milliseconds (1500 by default) so the camera reaches the NPC first.
Fix. Lower camera.settle and camera.transition, or set camera.enabled = false.
The dialogue or the panel never shows
Cause. The interface is not loading. The folder web/dist is missing or incomplete, usually after a partial upload.
Fix. Make sure web/dist/index.html exists inside the resource. If it does not, copy the resource again from the original package and restart the server.
