Uniqers scripts
uniqers-smartring
Uniqers Smart Ring The wearable your server has been missing. Not a menu that pretends to be a watch — a ring that is physically on the finger, a store that sells it, a courier who delivers it and…
- Updated
- Nov 29, 2026
- 2 days ago
- Works with
- QBCore
- ESX
- QBox
- Standalone
In this guide
1 page · ← → to browse
Get started
01UNIQERS SMART RING — Installation
Number of items you add to your inventory: 1 (one). Its name is
smartring. Which ring it is does not live in the item name, it lives in the database. Even when you add a new model you never touch the inventory again.
0. What you are adding, and why
How does one item tell 18 variants apart?
Which ring was used is resolved in this order:
| # | Path | Which inventories | | - | ------------------------------------------------- | ------------------------------------- | | 1 | metadata.variant | ox_inventory, qs, qb | | 2 | metadata.serial → uq_smartring_rings table | ox_inventory, qs, qb | | 3 | The last ring registered to the player (database) | classic ESX — carries no metadata |
Step 3 is what makes a single item enough even on inventories that carry no metadata. The variant is stored in the uq_smartring_rings.variant column.
How does it look in the inventory?
1. Install the resource
- Drop the folder into
resources/[uniqers]/uniqers-smartring. server.cfg:
ensure oxmysql ensure uniqers-smartring add_ace group.admin smartring.admin allowAdmin access works on every framework: QBCore / Qbox admins (god, admin), ESX admin groups and txAdmin admins (the command ace) are recognized without the add_ace line. For other frameworks fill in Config.Admin.custom. /ringperms in game shows which check lets a player in or keeps them out.
- Database — 13 tables are created on first start:
uq_smartring,uq_smartring_daily,uq_smartring_friends,uq_smartring_shares,uq_smartring_profile,uq_smartring_orders,uq_smartring_rings,uq_smartring_wallet,uq_smartring_refunds,uq_smartring_reallife,uq_smartring_store,uq_smartring_store_log,uq_smartring_nutrition
To install them by hand: sql/uniqers_smartring.sql
Requirements
2. ADD THE ITEM ← the fix for "no room in your inventory"
Apply one single block, the one for your inventory.
ox_inventory
File: ox_inventory/data/items.lua
Paste it inside the return { ... } table in that file:
return { -- ... your existing items ... ['smartring'] = { label = 'Smart Ring', weight = 2, stack = false, close = true, description = 'Uniqers smart ring. Use it to put it on.', client = { export = 'uniqers-smartring.useRing' }, server = { export = 'uniqers-smartring.useRing' } },}The same snippet is also in items/ox_items.lua.
QBCore / Qbox
File: qb-core/shared/items.lua — on Qbox, qbx_core/shared/items.lua
Paste it inside the QBShared.Items table:
QBShared.Items = { -- ... your existing items ... ['smartring'] = { name = 'smartring', label = 'Smart Ring', weight = 2, type = 'item', image = 'smartring.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Uniqers smart ring. Use it to put it on.' },}The same snippet is also in items/qb_items.lua.
In some QBCore versions the table is a plain
return { ... }instead ofQBShared.Items. Put the same lines inside that table — only the wrapper differs.
ESX (default inventory)
Run this on the database:
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('smartring', 'Smart Ring', 2, 0, 1)ON DUPLICATE KEY UPDATE `label` = VALUES(`label`);The same statement is in sql/uniqers_smartring.sql.
3. Images
9 images for ox_inventory — so every ring shows with its own icon. Copy them from this resource's images/ folder:
smartring_black_m.png smartring_gold_m.pngsmartring_pembe_m.png smartring_silver_m.pngsmartring_mor_m.png smartring_gold_glow_m.pngsmartring_mavi_m.png smartring_silver_glow_m.pngsmartring_kirmizi_m.pngThere is no
_fimage, and that is correct. The ring model is IDENTICAL for both genders, so every_fvariant points itsimagefield at the_mfile: 18 variants share 9 images.
For qb-inventory / ESX a single smartring.png is enough. This resource does not ship one — copy any of the 9 above under that name, or use your own icon.
It also works if you only drop in one image — then ox shows them all with the same icon and nothing else breaks.
The image names come from
config.lua > Config.Rings[...].image. That field is not an inventory item — it is only an image name.
4. Restart and verify
restart ox_inventoryrestart uniqers-smartringOn QBCore, qb-core instead of ox_inventory.
With Config.Debug = true the console prints what was detected:
[smartring] Framework: <name> | Inventory: <name>[smartring] Item added to inventory: smartring (single item)On ESX you additionally get:
[smartring] This inventory does not carry metadata — variant will be resolved from the database.Then give yourself a ring:
givering 1 mor_m1 = player ID, mor_m = the variant key (not the item name).
Without glow: black_m · black_f · pembe_m · pembe_f · mor_m · mor_f · mavi_m · mavi_f · kirmizi_m · kirmizi_f · gold_m · gold_f · silver_m · silver_f
With glow (gold and silver only): gold_glow_m · gold_glow_f · silver_glow_m · silver_glow_f
⚠️ Do not hand the item over directly (
giveitem 1 smartring). A ring given that way has no database record, so which model it is cannot be resolved. Always usegivering— the console reminds you of this too.
5. Store and settings
The store location is config.lua > Config.Shop.locations. Default:
{ label = 'Uniqers Store — Rockford Hills', coords = vec4(-654.28, -854.55, 24.49, 176.5), ped = 's_f_m_shop_high', blip = true}Uncomment the Vinewood location below it to add a second store.
Search for the setting name in
config.lua— line numbers are not listed here on purpose, because they go stale the first time anyone edits the file.
Store ownership — decide before you go live
A player can buy the store and earn a commission on every sale (Config.Store). It is on by default at a price of 2,500,000 and a 15-day tax cycle; an unpaid store reverts to the state and goes back on sale.
Config.Store.enabled = false -- turn the whole feature offConfig.Store.price = 2500000 -- transfer priceConfig.Store.tax.enabled = false -- keep ownership, drop the taxWhile the store has no owner nothing changes: prices come from the config and nobody earns from a sale.
Marriage integration (optional)
If uniqers-marriage is on your server, the wedding ring can become the smart ring. The resource start order matters — both add addon clothing to the same slot. See ENTEGRASYON.md.
6. Models
A) The ring — a clothing component (not a prop)
It ships ready; nothing extra to do. The models are packaged as addon clothing: the stream/[male] + stream/[female] folders, with the mp_?_freemode_01_uniqerssmartring.meta files at the resource root registered in fxmanifest as SHOP_PED_APPAREL_META_FILE.
The drawable numbers are not fixed in the config — addon clothing is appended after the game's own clothing, so the numbers shift with GTA updates. The config holds the order inside the pack (wear.addon); the real number is worked out at runtime.
To check them in game (admins only):
/ringaddonA2) Preventing rings from being "stolen" at a clothing store
The hole: the rings sit in component slot 8 (accs) as addon drawables. Anyone who walks into a clothing store can scroll that slot to a ring drawable and save the outfit. A player who never bought a ring ends up wearing one, and because the clothing script saved it, it survives a relog.
The ring script cannot catch this on its own: it only writes the ring at a few known moments and never scans the ped afterwards — that is why it costs 0.00 ms while idle. So the check has to happen where the clothing is picked. The exports below exist for that. No loop is added; they only run when the clothing script asks.
Only our own ring drawables are evaluated. Everything else, including normal accessories in the same slot, passes through untouched.
1) In the clothing menu (client) — instant feedback:
local ok, reason = exports['uniqers-smartring']:CanWearClothing(8, drawable)if not ok then -- roll the slot back to a safe value and warn the player SetPedComponentVariation(PlayerPedId(), 8, 0, 0, 0)end2) When the outfit is saved (server) — the real security boundary:
local ok = exports['uniqers-smartring']:CanPlayerWearClothing(src, 8, drawable)if not ok then drawable = 0 end -- save a safe value insteadThe reason values you can get back: not_owned (no ring / in pocket / not worn), wrong_ring (they own a ring but are trying to wear someone else's model).
A client-side check is not security — a cheater can edit their own clothing script and skip it. It is only there for fast feedback in the menu. The real block is the server export, at save time.
⚠ For the server side, Config.AddonClothing.base must be pinned. There is no ped on the server, so the addon block cannot be read from the model; with no pinned base it cannot tell a ring drawable from a normal accessory, and blocking blindly would break every accessory in that slot. In that case it allows the change and prints one warning. Find the numbers with /ringaddon and pin them in config.lua:
Config.AddonClothing.base = { male = { [8] = 130 }, female = { [8] = 145 } }B) The delivery box — a real prop
The model name is uq_smartring_box; it goes into the stream/ folder. Its position in the hand comes from Config.Delivery.box.attach; the shipped values match the model in the package. Config.Delivery.box.fallback names the prop used if the model ever fails to stream in.
C) The remote — a round OLED screen (prop)
When the app opens, the character takes the ring's screen module into their palm and brings it up to their face, and the app really does run on that round piece of glass.
The remote is NOT a separate item. Everyone wearing a ring has it, and it disappears when the panel closes. You do not need to add anything to the inventory, to SQL, or to the store.
Nothing extra to do
The model, its textures and its animations ship inside the resource and are registered by fxmanifest.lua. Nothing to convert, nothing to register.
From the box to the finger
Two sequences, both driven entirely from config.lua. Every pose in them is optional: false, or a dictionary that will not load, plays that phase unposed but with its timing intact, so a wrong clip name can never leave a box stuck in someone's hand or a ring that never arrives.
When the box gets opened. On arrival the courier hands it over and the player simply puts it away — the box is not opened there. Opening it, taking the ring out and putting it on happens when they use the ring item, so that moment belongs to the player rather than to whenever the delivery happened to land.
Config.Delivery.box.openOnArrival = false -- true: open it on arrival insteadConfig.WearAnimation.fromBox = 'first' -- 'first' | 'always' | falsefromBox = 'first' means the ring comes out of its box once — the first time it is put on, before the setup wizard has run. After that, putting it on is just putting it on.
Arrival — stowAnim / stowTime (1300 ms), box gone at stowHideAt.
Opening the delivery — Config.Delivery.box:
Set takeTime = 0 to drop the middle phase; the box then disappears during pocketing instead.
Putting it on — Config.WearAnimation:
Config.WearAnimation = { enabled = true, anim = { dict = 'mp_common', clip = 'givetake1_a' }, time = 1700, -- how long the pose runs wearAt = 950, -- the ring appears on the finger at this ms skipMarriage = true,}The pose plays first, the ring appears part-way through it, and pairing only starts once the hand comes down — so what the player sees follows the order the fiction claims: put it on, then it connects.
A marriage ring skips the pose by default (skipMarriage): it is put on by the ceremony, not by someone rummaging in a pocket.
The custom clip. smartring_unbox (4.97 s) is a purpose-made animation in this resource's own dictionary — the box comes up, opens, the ring is taken out, put on, and the box goes away, as one continuous motion. It is on by default:
Config.WearAnimation.oneShot = { enabled = true, anim = { dict = 'uniqers_smartring@check', clip = 'smartring_unbox', flag = 50 }, time = 4970, -- 149 frames @ 30 fps openAt = 1350, -- closed box -> open box model wearAt = 3330, -- the ring appears on the finger hideAt = 4500, -- the box disappears, pocketed attach = { bone = 18905, pos = vec3(-0.05, 0.02, -0.02), rot = vec3(-90.0, 0.0, 0.0) },}The prop events are keyed to the clip's own timeline, not to the phase timings in Config.Delivery.box — those are only used when oneShot.enabled = false, which falls back to the vanilla-clip chain.
The box is in the LEFT hand here, while the courier's handover box sits in the right — which is why this clip carries its own attach block. Swapping the box model means adjusting the pos / rot values in it.
The four phases deliberately come from four different clip families, so the sequence never repeats the same gesture twice in a row.
There is no wedding-ring animation in GTA V; the ring-wearing pose is this resource's own uniqers_smartring@check clip.
Animation
The uniqers_smartring@check dictionary carries the remote's own clips:
They ship with the resource. A second pair of clips sits behind them in the openAnims list in config.lua as a fallback: if a clip cannot be loaded the script notices after 350 ms and falls through to the next candidate, so the panel always opens.
Two modes — the only difference is WHERE the UI is drawn
config.lua > Config.RingOS.mode:
Switch between them with config.lua > Config.RingOS.mode.
7. Commands
Admin (framework admins work automatically — see Config.Admin)
Food & drink editor — with the same admin access, the ring's Settings page grows an extra section at the bottom: the list of items the catalog page knows about ("what does this do to me?"), editable from inside the ring. Add an item, change its label, kcal, water, hunger, thirst or stress, tag it, or take it out of the catalog. A player without the ace never sees the section and is never sent the list.
Two things worth knowing:
config.luais never rewritten. It stays the shipped defaults; your edits go touq_smartring_nutritionand are layered on top, so a script update cannot wipe your catalog and your comments inconfig.luastay as you wrote them. Removing an item that ships with the script only hides it — it stays listed under "Removed from the catalog" and Restore brings the original values back. An item you added yourself is deleted outright.- Hunger, thirst and stress are reported, not applied. The ring shows them on the consume card; the actual values come from your own food script, exactly as with
Config.Nutrition.items. If the ring applied them too, every meal would count twice.
Changes reach every connected player immediately — no restart.
Hunger, thirst and injury warnings
When a value drops past its threshold the ring notifies the player and the character reacts for a couple of seconds — doubling over, not miming a meal: there is nothing in the hand to mime with, so an eating or drinking clip would read as chewing on air.
Config.Vitals.anims = true -- master switch over every warning animConfig.Vitals.hunger.anim = { dict = 'amb@code_human_cower@male@base', clip = 'base' }Config.Vitals.thirst.anim = false -- silence just this oneSet anims = false if your server already plays its own hunger and thirst animations, or give any single warning anim = false to leave the body alone and keep the notification. enabled = false on a warning turns the whole thing off, notification included.
What other players see on your remote
Your own glass always shows your live panel — you are the one reading it. This is about the remote in someone else's hand, and it works the same in screen mode and 3D mode.
Config.RingOS.remote.peerScreen = { enabled = true, sync = true, -- true: their real panel, live. false: a still home screen size = 256, slots = 3, -- how many remotes can show their own screen at once rate = 1000, -- sync = true: how often the holder's panel is sent (ms) viewers = 6, -- sync = true: how many of the nearest players get it blur = 7, offset = 0.004, distance = 12.0,} Config.RingOS.remote.privacyScreen = { enabled = true, price = 2500, -- bought once, from the ring's Settings page}Either way the cell runs the real interface. There is no drawn stand-in face anywhere in this resource: what you see on someone's remote is the panel, live or idle.
Texture replacement in FiveM is per client and per model, not per entity: left alone, every remote your game draws would be showing your panel. So the script lays a second, small browser surface over the remotes in view — a row of cells, peerScreen.slots of them, handed to the nearest holders — and each cell runs its own copy of the panel. The surface is created only once another player's remote is actually in view, and nothing is drawn beyond distance.
A screen cannot be streamed from one client to another, so with sync = true what travels is the holder's panel state: once a second (rate), only to the viewers nearest players who can already see them. Every viewer rebuilds the same panel from it locally, in that viewer's own language. With sync = false nothing travels at all — the cell opens the panel's own home screen and leaves it there, showing the in-game clock and the app grid.
Cost. Each cell is a live copy of the interface, so slots is the knob that matters on weaker machines: 2–3 is comfortable, and a cell is only ever handed to a remote that is actually in view.
offset is how far in front of the glass the cell is drawn. It only has to clear the model's domed glass; raise it if the two ever flicker through each other.
The privacy screen is a one-off purchase from the ring's own Settings page. Set privacyScreen.enabled = false and the row does not appear at all.
Treat this as cosmetic, not as a security boundary.
Diagnostics (admins only — same Config.Admin check as above)
These answer admins only, on every framework, and nothing has to be switched on first — Config.Dev can stay false on a live server. The two diagnostics only print, and only about your own character.
Tuning the navigation arrows
The arrows on the road can be drawn two different ways; which one is used is decided by config.lua > Config.Map.navigation.arrowStyle:
The positions come from the 3D world in both modes (same route, same ground height); in ui mode only the drawing happens in the UI layer. The color gradient, the glow and the flowing pulse are only possible that way — GTA markers allow none of them.
Everything below is edited in config.lua > Config.Map.navigation and takes effect on the next restart.
ui mode — under navigation.uiPath:
marker mode — directly under navigation:
arrowTilt values:
8. Common problems
"No room in your inventory" — even with an empty inventory
Cause: the smartring item has not been added. ox_inventory returns false from CanCarryItem for an item it does not know. On QBCore AddItem fails a step later; same result.
Fix: step 2.
No money is taken in this case — the check runs before payment.
"Could not resolve which model this ring is"
The item was handed over manually (giveitem 1 smartring), so there is no ring record in the database. Use givering [id] [variant]. The console warns about this too.
"You already have an order in progress"
Config.Delivery.oneActiveOrder = true and there is a pending order in the database. You can see it and cancel it from the My Orders button in the store.
An order already on the road (the courier has left) cannot be cancelled. If the server restarted, one relog delivers the order into your inventory and clears the record.
I have several rings on ESX and it puts on the wrong one
The classic ESX inventory carries no metadata, so the ordering comes from the database: the most recently acquired ring is worn. Take it off and it moves to the next one. If you want a firm distinction, move to ox_inventory — there each ring carries its own metadata.
The store NPC does not show up
The ped model in Config.Shop.locations has to be loaded on your server.
9. Languages and names
Twelve languages ship complete — TR, EN, ES, FR, DE, PT, RU, PL, NL, IT, AR, ZH — with the same 1662 keys in each. Nothing the player can read is written into the code.
Config.Locale = 'en' -- the default, and the language of console / Discord logsEach player then picks their own during the first-run setup, and can change it any time under Settings → Language. Their choice covers everything: the panel, the store, the lock screen and the notifications the server sends them. The list itself is just ids:
Config.Setup.languages = { { id = 'tr' }, { id = 'en' }, { id = 'es' }, ... }The name of a language and the line under it come from that language's own dictionary (lang_name / lang_note), so every language presents itself in its own words. Add label = '...' / note = '...' to an entry only to override it.
Renaming a ring, a store or a food item
In config.lua these names are dictionary keys, not text:
{ key = 'gold_glow_m', label = 'ring_gold_glow', ... }That is what lets "Gold Glow Edition" arrive as Gold Glow 系列 for a player on Chinese. You have two ways to change it:
- Keep it translatable — edit that key in
locales/<language>.lua. The other languages keep their own wording. - One name for everyone — write plain text straight into
config.lua:
label = 'Nightfall Edition',Anything that is not a known key is printed exactly as you typed it. The same rule applies to Config.Shop.locations[].label, Config.Shop.blip.name and the food labels under Config.Nutrition.items.
Adding a thirteenth language
- Copy
locales/en.luatolocales/xx.luaand change the table name at the top toLocales['xx']. - Translate the values. Keep
%s/%dand any<b>/<em>tags exactly where they are — they are filled in by the script. - Set
lang_name(how the language calls itself) andlang_note(the line under it on the setup screen). - Add
{ id = 'xx' }toConfig.Setup.languages.
The file is picked up automatically: fxmanifest.lua loads locales/*.lua.
Writing your own server-side notification? Use
UQ.LP(src, 'key', ...)— it speaks that player's language.UQ.L('key', ...)usesConfig.Localeand is for console and Discord logs.
10. Performance
On a live server the script sits at 0.02 ms client-side and holds no per-frame loop on the server at all. You do not have to tune anything; the sections below are there for the two cases where it matters.
If you run 1000+ slots
At the end of config.lua there is a commented 2500-player profile. Uncommenting it roughly halves the fixed event traffic (the periodic reports travel in larger packets instead of more often — no data is lost):
Config.Performance.reportInterval = 30 -- 20 -> 30 secConfig.Biometrics.steps.syncInterval = 45 -- 30 -> 45 secConfig.Social.locationInterval = 15 -- 10 -> 15 secConfig.FindRing.trackInterval = 120 -- 60 -> 120 secConfig.Social.scanCooldown = 15 -- 5 -> 15 secConfig.Wallet.scanCooldown = 5 -- 2 -> 5 secSaving is already batched: every saveInterval (30 s) at most saveBatchSize (400) dirty players are written with two prepared statements — four queries a minute in total, whatever the player count. Everything else lives in memory and is written the moment it matters (a purchase, putting the ring on or taking it off) and again in full when the player disconnects, plus one batched write for everyone when the resource stops.
If a machine is struggling
Installation order — summary
1. Drop in the folder2. Add ensure + ace to server.cfg3. Add the ONE item to your inventory: smartring ← MOST IMPORTANT4. Drop the image(s) into the images folder5. restart ox_inventory + restart uniqers-smartring6. Verify with: givering 1 mor_m7. Set the store location in Config.Shop.locations8. Pick the default language: Config.Locale (12 ship complete)9. 1000+ slots? uncomment the 2500-player profile at the end of config.luaSupport & Updates:
Encountered a bug or need help configuring a custom framework? Join our community!
02Support & Updates & Questions

\ Discord
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord