Cuxial Emotes needs no SQL import, and its interface ships already built. Install the dependencies, copy the folder and start it in the right order.
Install the dependencies
The resource will not start unless all of these are present and running:
- OneSync enabled on the server
ox_liboxmysqlcuxial_bridge
cuxial_bridge detects your framework on its own. It supports QBox, QBCore and ESX.
cuxial_diseases is optional. Only the relations module of the add-on uses it, for its tests and contagion. If it is not running, those features do nothing and everything else works the same.
Copy the resource
Place the folder in your resources directory and keep its name as cuxial_emotes.
Do not rename the folder. Exports and inventory items point to the resource by name (exports.cuxial_emotes, cuxial_emotes.condom_closed), and renaming it breaks them.
Database
Nothing to import. The tables are created when the resource starts, and missing columns are added automatically:
cuxial_emotemenu_data: favorites, sets, walk style, expression, recents and usage per charactercuxial_emotes_zones: emote zonescuxial_emote_reports: reports sent from the menucuxial_encounters: used only by the relations module
install/emotes.sql holds the same schema for reference, or to create the tables by hand.
Items (optional add-on only)
Skip this step if you do not use the cuxial_emotes_dlc add-on. The item exports always exist, so the inventory never errors, but without the add-on they do nothing.
Add the items to ox_inventory:
['condom_box'] = {
label = 'Condom box',
weight = 100,
stack = false,
close = false,
consume = 0,
description = 'A box with several condoms.',
},
['condom_closed'] = {
label = 'Condom (sealed)',
weight = 10,
stack = true,
close = true,
description = 'A sealed condom in its original wrapper.',
server = {
export = 'cuxial_emotes.condom_closed',
},
},
['condom_open'] = {
label = 'Condom (open)',
weight = 10,
stack = false,
close = true,
description = 'An open condom, ready to use.',
server = {
export = 'cuxial_emotes.condom_open',
},
},
['pregnancy_test'] = {
label = 'Pregnancy test',
weight = 20,
stack = false,
close = true,
description = 'A pharmacy pregnancy test.',
server = {
export = 'cuxial_emotes.pregnancy_test',
},
},
['hiv_test'] = {
label = 'HIV test',
weight = 20,
stack = false,
close = true,
description = 'Rapid HIV detection test.',
server = {
export = 'cuxial_emotes.hiv_test',
},
},Register the box as a container:
setContainerProperties('condom_box', {
slots = 3,
maxWeight = 50,
whitelist = { 'condom_closed', 'condom_open' },
})To show the test result and date in the item tooltip, add this to any client script:
exports.ox_inventory:displayMetadata({
result = 'Result',
date = 'Date',
})The full reference, including the metadata each item stores, is in install/items.md.
Convars (optional)
Both are optional. Add them to server.cfg before the ensure lines.
# Discord webhook that receives the broken emote reports
set cuxial_emotes:report_webhook "https://discord.com/api/webhooks/..."
# 1 = print debug traces to the server and client consoles
setr cuxial_emotes_debug 1Declare the webhook with set, never setr: a replicated convar is sent to every client. The link goes in server.cfg, not in shared/config.lua. Without it, reports are still saved to the database.
Raise the engine limits (recommended)
Cuxial Emotes loads thousands of animations and hundreds of props. If the game runs out of slots for them, players crash when they open the menu or play emotes, especially on servers with many maps and vehicles. Add these lines at the top of server.cfg:
# Engine limits (all at the maximum allowed)
increase_pool_size "CMoveObject" 75
increase_pool_size "FragmentStore" 14000
increase_pool_size "OcclusionInteriorInfo" 20
increase_pool_size "OcclusionPathNode" 5000
increase_pool_size "OcclusionPortalEntity" 750
increase_pool_size "OcclusionPortalInfo" 750
increase_pool_size "PortalInst" 225
increase_pool_size "ScaleformStore" 200
increase_pool_size "StaticBounds" 5000
increase_pool_size "TxdStore" 26000
increase_pool_size "AnimStore" 20480| Line | What it is for |
|---|---|
AnimStore | Animation slots. The most important one for emotes. |
TxdStore | Prop textures. |
FragmentStore | Props with physics parts. |
CMoveObject | Several players using emotes with objects at the same time. |
ScaleformStore | Game interfaces. |
Occlusion*, PortalInst, StaticBounds | Maps and interiors. Not used by the menu, but they prevent crashes on servers with many maps. |
These values are already the maximum FiveM accepts: going higher has no effect. They apply after a full server restart; restarting the resource is not enough.
Start order
Start the dependencies first and Cuxial Emotes last.
ensure ox_lib
ensure oxmysql
# your framework and inventory here
ensure cuxial_bridge
# ensure cuxial_diseases (optional: tests and contagion of the relations module)
# ensure cuxial_emotes_dlc (only if you have the add-on)
ensure cuxial_emotesIf you use cuxial_emotes_dlc, start it before cuxial_emotes. While the add-on is installed but not started, zones and relations stay off and the console prints a warning.
Check that it works
- Restart the server and join.
- Press F3. The menu opens.
- Type
/e adjust. Your character plays the emote. - Press X to cancel it.
If something fails, see Troubleshooting.
Sample zones
install/zones_example.sql contains one sample emote zone over the Pink Cage motel, on the base map. It is optional. Create your own zones in game with /emotezones. Either way, zones need the cuxial_emotes_dlc add-on.
