Install The Lab General Store on VORP
There is no SQL to import and no item to add: the store sells items your VORP server already has, and its tables are created on first start. Most of the install is making room at the counters and checking the goods in /storeadmin.
Before you start
vorp_coreandvorp_inventoryoxmysql- OneSync enabled
Install steps
Step 1: Download the resource from the Cfx.re Portal
Sign in to the Cfx.re portal with the account you used at checkout, open your granted assets and download
tlb-generalstore. Extract the archive into your resources folder and keep the folder name as it is.Step 2: Free the counters
vorp_storesputs its own clerks in the same general stores. Comment it out, or remove those stores from its config, so only one clerk stands at each counter.# ensure vorp_storesStep 3: Grant the admin permission
VORP
adminandsuperadmingroups are accepted as well, but the ACE works for everyone you put in the group.add_ace group.admin tlb-generalstore.admin allowStep 4: Start order
Start the framework before the store so it is detected.
ensure oxmysql ensure vorp_core ensure vorp_inventory # ... ensure tlb-generalstoreStep 5: Check the goods
Start the server: the
tlb_gs_*tables anddata/settings.jsonare created with the eight stores and 33 default goods. Open/storeadmin> Goods and make sure each item name exists in youritemstable; the picker lists them.Step 6: Test a purchase
Walk into a store, look at a tin on a shelf, press E, then pay at the counter. The goods should land in your inventory and the money in the store's register.
Troubleshooting
Two clerks stand at the same counter
vorp_stores or another store script still serves that counter. Disable it there and restart it.
Pressing E on a shelf does nothing
That prop is not linked to any goods. In /storeadmin > Goods, pick the goods and link the object in the world. Interiors differ, so link the props of each store once.
Settings are lost after a restart
The data/ folder must be writable by the server: every setting is saved to data/settings.json.
FAQ
Do I have to add items to the database?
No. Goods point to items that already exist. To sell a new item, add it to VORP first, then create the goods in /storeadmin.
I locked myself out of /storeadmin. What now?
Stop the server, delete the "system" block of data/settings.json and start again: the defaults come back.
Related guides
- Install oxmysql on RedMSet up oxmysql for RedM: download the release build, set mysql_connection_string, ensure it first and fix the usual connection errors.
- RedM server.cfg ensure orderWhy start order matters in a RedM server.cfg and the order that works: database, libraries, framework core, inventory, then your scripts.
- How to install a RedM scriptInstall any RedM resource: get the files, check fxmanifest dependencies, add SQL and items, place the ensure line and test from the console.