The Lab General Store
Immersive general stores for RedM (RDR3), as they worked in the Old West.
Works with VORP, RSG, RedEM:RP and standalone (auto-detected). Everything is configured in game with /storeadmin — there is no config file to edit.
The eight general stores of the map (Valentine, Rhodes, Strawberry, Blackwater, Armadillo, Tumbleweed, Saint Denis, Van Horn) are ready on first start, with their clerk behind the counter and their goods on the shelves.
Highlights
- Goods on the shelves — players look at a tin, a bottle, a cigar box: it glows and shows its price tag. E takes it; it leaves the shelf until the restock delay.
- Ready-made catalogue — default goods already linked to the vanilla props of the store interiors, with the item names of your framework.
- Pay at the counter — a handwritten invoice, stamped paid, money into the store's register.
- Shoplifting — the clerk may see it, ring the bell, send a witness to the sheriff and chase the thief.
- Robberies — hold the clerk at gunpoint to empty the register.
- Owned stores — jobs or players run a store with an account book, prices, stock and wholesale orders.
- Opening hours, store zones, extra props — all set in game.
- 14 languages, every text editable in game.
Requirements
- RedM with OneSync enabled (thefts are watched on the server from player positions; the clerk is one networked NPC, the same for every player)
- oxmysql
- One of:
- VORP — vorp_core + vorp_inventory
- RSG — rsg-core + rsg-inventory
- RedEM:RP — redem_roleplay + redemrp_inventory
- nothing — standalone: roleplay only, no money or items change hands
Installation
- Place the
tlb-generalstorefolder in your resources directory. - Disable other general stores standing at the same counters (for example comment
ensure vorp_stores), otherwise two clerks stand at the same place. - Give your admins the permission:
add_ace group.admin tlb-generalstore.admin allow
VORP admin groups and RSG admin / god permissions are also accepted.
- Add to
server.cfg, after your framework:
ensure oxmysql
ensure tlb-generalstore
- Start the server. The tables (
tlb_gs_registers,tlb_gs_stock,tlb_gs_ledger) are created automatically, anddata/settings.jsonis created with the eight stores and the default goods.
No SQL to import and no item to add: the store sells items that already exist in your inventory. The interface ships pre-built in app/, no build step.
The
data/folder must be writable by the server: all settings are saved there.
Default goods
On first start the catalogue is filled with goods linked to the vanilla props of the store shelves (cans, coffee tins, bottles, candy jars, cigar boxes, medicine, bandages…).
| Framework | Default goods | Item names |
|---|---|---|
| VORP, RedEM:RP, standalone | 33 | consumable_peach, consumable_coffee, whisky, cigar, bandage… |
| RSG | 19 | canned_peaches, coffee, glass_whisky, cigar, bandage… |
The names are picked for the framework detected. Open /storeadmin → Goods once to check that every item exists in your inventory (the item picker lists your framework's items) and change the ones your server renamed.
In game — /storeadmin
Admins only. Every change is saved to data/settings.json and applied live to every player, no restart.
Stores
- Add at my position — stand behind a counter: the clerk spawns where you stand, facing your direction.
- Name, clerk model (with a check button), clerk position (move to my position, teleport there, turn 180°).
- Blip on the map.
- Store size — the circle around the clerk; leaving it with unpaid goods is stealing.
- Store zone — or draw the real floor of the store: the panel closes, walk along the walls, E drops a corner at your feet, Backspace removes the last one, Enter saves (R cancels). Erase it to go back to the circle.
- Opening hours — on the game clock. Closed: the clerk goes home, nothing can be taken or paid, the blip turns to the "closed" colour. Closing before opening = open past midnight.
- Props placed in the store — put extra goods on the shelves: the prop follows your eyes, ← → / mouse wheel to turn, ↑ ↓ for the height, Enter to place.
- Owner and register — see Store ownership.
Goods
The catalogue (item creator). Each goods is:
- an item of your inventory (picked from your framework's item list),
- a price tag (label), a price and a wholesale price (what an owner pays to restock),
- a restock delay — how long a prop stays off the shelf once taken (0 = it never leaves),
- the props that sell it, in every store.
Link objects in the world: the panel closes, look at any object of a store and press E to link it, E again to unlink, Backspace when done. A prop model belongs to one goods only.
Rules
- General — language, how many goods a customer can carry to the counter.
- Shoplifting — on/off, chance the clerk sees it, witness delay.
- Pursuit — on/off, chance of a pursuit, chance the clerk draws a revolver, how far and how long he runs.
- Robbery — on/off, aiming time, time to empty the register, lawmen required, cooldown per store, most a robbery takes, cash an NPC store starts with.
- The law — lawmen jobs (framework job names), size and duration of the area shown on their map, suspect description.
- The bell — on/off, range.
Texts
Every text of every language, editable. Edits are kept on top of the language files.
System
Framework (auto, VORP, RSG, RedEM:RP, standalone), admin permission (ACE), admin command name, keys, blip icon / size / closed colour, arm reach, counter reach, pick-up animation, admin access to every account book, debug mode.
If a wrong value locks you out (for example the command or the permission), stop the server and delete the
"system"block ofdata/settings.json: the defaults come back.
Playing
| Key | Where | What |
|---|---|---|
| E | looking at goods on a shelf | take it (it goes on your shopping note) |
| E | locked on the clerk | ask for the bill and pay |
| R | at the counter | ask for the bill and pay |
| G | at the counter / locked on the clerk | open the account book (staff of an owned store) |
| R | staff keeping the counter | serve a customer (write the bill) |
Every key can be changed in /storeadmin → System.
- Shopping note — the list of what you hold and owe. Pay at the counter to get a handwritten invoice, stamped paid.
- Walking out without paying — the goods are yours, unless the clerk sees it: he rings the store bell (heard around, louder when close), a witness runs to the sheriff (after the witness delay, lawmen get the store and a rough area on the map, with "a man" or "a woman", never a name). He may also run after you, fists up or revolver out, and take his goods back if he catches you.
- Robbing the clerk — keep your gun on him for the aiming time: he raises his hands and empties the register (what is really in it, capped). Stay close until he is done. Bell, witness, cooldown per store, lawmen required on duty.
- The clerk — he can be hurt and killed; a new clerk takes the counter a few minutes later. He is the same NPC for every player.
Store ownership
Each store has an owner, set in /storeadmin → Stores → Owner:
| Owner | How it works |
|---|---|
| The house (NPC) | Run by the clerk, always supplied, sales go to its register. |
| A job | Every member of the job works there. From the managing grade, they manage cash, prices and wholesale orders. |
| A player | One character owns and manages the store (hand it to the closest player or take it myself). |
Staff open the account book at the counter (G):
- Register — count it, put money in, take money out.
- Prices — the store's own price tags, on top of the catalogue.
- Stock and wholesale orders — owned stores sell only what they have in stock; orders are paid from the register at the wholesale price. Sold-out goods leave the shelves until restocked.
- Day book — sales, thefts, robberies, withdrawals.
A member can also keep the counter: the NPC clerk steps away and customers are served by the player, who writes their bills.
Admins can open every account book if admin access to every account book is on (System, off by default).
Languages
English (default), Français, Deutsch, Español, Italiano, Português, Polski, Nederlands, Русский, Türkçe, Čeština, Magyar, Română, Svenska. Switch in /storeadmin → Rules → language.
To add a language, copy locales/en.json to locales/<code>.json and translate the values. Placeholders such as {0} must stay in place.
Frameworks
A small adapter per framework lives in bridge/server/frameworks/ — these files are open (not escrowed). To run on another framework, edit one of these adapters (for example standalone.lua) so its functions (getCharacter, addMoney, removeMoney, isAdmin, notify, canCarry, addItem, removeItem, optionally listItems) call your framework, then pick that adapter in /storeadmin → System. The list of adapters is fixed (VORP, RSG, RedEM:RP, standalone): a new adapter file is not detected or selectable on its own.
FAQ
Two clerks stand at the same counter. Another store script still runs there. Disable it (for example ensure vorp_stores commented out) and restart.
Nothing happens when I press E on a shelf. That prop is not linked to any goods. Open /storeadmin → Goods, pick the goods and link the object in the world. Interiors differ between stores: link the props of each store once.
Players can't buy: "item not found" or nothing is added. The item name does not exist in your inventory. Fix it in /storeadmin → Goods (the picker lists the items of your framework).
The clerk never sees thieves / never chases. Check shoplifting, pursuit and their chances in Rules. The pursuit only happens when the theft is seen and no player keeps the counter.
Robberies are refused. Not enough lawmen on duty (lawmen required), the store is on cooldown, or the job names in lawmen jobs do not match your framework's job names.
I locked myself out of /storeadmin. Stop the server, delete the "system" block of data/settings.json, start again.
Where is the data? Settings in data/settings.json; registers, stock and the day book in the tlb_gs_* tables.
Can I edit the code? The framework adapters are open. The rest is protected by Cfx.re escrow; every setting is available in game.
Does it work without a framework? Yes, in standalone mode: everything plays out, but no money or items change hands.