Configuration
Every config.lua option in Eleven Mate: framework, notifications, simple or full mode, sips, thermos, yerba skill check, keys, props and translations.
Everything is set in config.lua. The code is encrypted: only config.lua and the translations in locales/ can be edited. After changing the config, restart the whole server (the resource streams models, so don't restart it with players online).
General
| Key | Default | What it does |
|---|---|---|
Config.Debug | false | Debug messages in the console |
Config.Locale | 'en' | Language: any file in locales/ ('en', 'es') |
Config.Framework | 'auto' | Where thirst and stress come from: 'auto' (detects qbx_core, qb-core or es_extended), 'qbox', 'qbcore', 'esx' or 'none' (no thirst or stress changes) |
Config.Notify | 'ox_lib' | Notifications: 'ox_lib', 'qbcore' (QBCore:Notify) or 'esx' (esx:showNotification) |
Config.Item | 'mate' | Mate item name |
Config.Yerba | 'yerba_mate' | Yerba item name |
Config.FullMode | true | true: full mode (yerba + thermos). false: simple mode, the mate comes ready and is used up when empty |
Config.AllowInVehicle | false | Allows holding, sipping and preparing the mate inside a vehicle |
Config.AdjustCommand | false | Prop placement helper (see below). Keep it false on a live server |
Tip
If mate, yerba_mate or termo clash with items you already have, rename them in Config.Item, Config.Yerba and Config.Thermos.item, and use the same names in ox_inventory/data/items.lua.
Keys
Config.Keys sets the keys used while holding the mate. control is the GTA control index (control list) and label is the letter shown in the prompt.
| Key | Default | What it does |
|---|---|---|
sip | { control = 38, label = 'E' } | Take a sip |
pour | { control = 45, label = 'R' } | Pour from the thermos (full mode). Reloading is blocked while holding the mate |
putAway | { control = 47, label = 'G' } | Put the mate away |
Config.Keys = {
sip = { control = 38, label = 'E' },
pour = { control = 45, label = 'R' },
putAway = { control = 47, label = 'G' },
}
If you change control, change label too so the prompt shows the right key.
Interface
Config.UI (all ox_lib):
| Key | Default | What it does |
|---|---|---|
textPosition | 'right-center' | Key prompt position: 'right-center', 'left-center', 'top-center' or 'bottom-center' |
progressPosition | 'bottom' | Position of the progress circle while pouring or refilling: 'middle' or 'bottom' |
Sips
Config.Sips:
| Key | Default | What it does |
|---|---|---|
total | 10 | Sips per preparation (in simple mode, the sips a mate gives) |
thirst | 6 | Thirst restored per sip (0–100) |
stress | 4 | Stress removed per sip (0–100) |
cooldown | 3 | Minimum seconds between sips, checked by the server |
Thermos
Config.Thermos (full mode only):
| Key | Default | What it does |
|---|---|---|
item | 'termo' | Thermos item name |
charges | 5 | Pours per full thermos |
sips | 2 | Sips each pour gives |
pourMs | 3000 | Milliseconds to pour |
refillMs | 4000 | Milliseconds to refill the thermos |
waterItems | { 'water', 'water_bottle' } | Items that refill the thermos. The first one the player has is used |
model | `elv_termo` | Thermos model |
bone | 60309 | Left-hand bone the thermos attaches to |
pos / rot | vec3(0.04, 0.02, -0.12) / vec3(-70.0, 0.0, 0.0) | Thermos offset and rotation in the hand (tilted, as if pouring) |
Yerba preparation
Config.Ritual (full mode only):
| Key | Default | What it does |
|---|---|---|
difficulty | { 'easy', 'easy', 'medium' } | ox_lib skill check difficulty (one entry per round) |
keys | { 'e' } | Skill check keys |
badSips | 7 | Sips the mate gives if the skill check fails |
emptyModel | `elv_mate_vacio` | Mate model without yerba |
stageModels | elv_mate_yerba1 … elv_mate_yerba5 | Yerba stages shown while shaking |
stageMs | 110 | Milliseconds between yerba stages |
tilt | 24.0 | Degrees the mate tilts while shaken |
spin | 12.0 | Degrees it spins on itself |
speed | 7.0 | Shake speed (radians per second) |
finalMs | 900 | Milliseconds the yerba stays visible after the skill check |
maxMs | 30000 | Safety limit for the preparation props |
camera | { distance = 0.32, height = 0.22, fov = 38.0, easeInMs = 400 } | Close-up camera: distance, height, field of view and ease-in time |
Prop and animations
Config.Prop:
| Key | Default | What it does |
|---|---|---|
model | `elv_mate` | Mate model in the hand |
bone | 28422 | Right-hand bone |
pos | vec3(0.0, 0.0, -0.03) | Offset in the hand |
rot | vec3(0.0, 0.0, 90.0) | Rotation in the hand |
Config.Anim:
| Key | Default | What it does |
|---|---|---|
hold | amb@world_human_drinking@coffee@male@base / base | Animation while holding the mate |
sip | amb@world_human_drinking@coffee@male@idle_a / idle_a, duration = 3500 | Sip animation and its length in ms |
Placing the prop for another animation
If you change the animations and the mate sits wrong in the hand, turn on the adjust helper on a test server:
Config.AdjustCommand = 'mateadjust'
With the mate in hand, type /mateadjust x y z rx ry rz (for example /mateadjust 0.0 0.0 -0.03 0.0 0.0 90.0). The prop moves instantly. Once it looks right, copy the values into Config.Prop.pos and Config.Prop.rot and set Config.AdjustCommand = false again.
Translations
Texts live in locales/en.json and locales/es.json, and you can edit them freely.
To add a language, copy en.json under a new name (for example fr.json), translate it and set Config.Locale = 'fr'. Missing keys fall back to English.
In the help texts, each %s is a key letter from Config.Keys and %d is a number of sips: keep them.
"help": "[%s] Sip · [%s] Pour water · [%s] Put the mate away",
"prepared": "Yerba ready for %d sips. Pour water with the thermos.",
Note
Need something the config doesn't cover? Open a ticket on our Discord.