Install The Lab General Store on RedEM:RP
The store needs no SQL and no new items on RedEM:RP. The one manual step is the catalogue: redemrp_inventory cannot list its items, so you check the default item names by hand.
Before you start
redem_roleplayandredemrp_inventory2.xoxmysql- 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
If another resource puts shopkeepers in the general stores, turn it off at those counters, otherwise two clerks stand at the same place.
Step 3: Grant the admin permission
RedEM:RP
adminandsuperadmingroups are accepted too.add_ace group.admin tlb-generalstore.admin allowStep 4: Start order
Start the framework before the store so it is detected.
ensure oxmysql ensure redem_roleplay ensure redemrp_inventory # ... ensure tlb-generalstoreStep 5: Check the item names
The 33 default goods use the same names as on VORP (
consumable_peach,consumable_coffee,whisky,cigar,bandage...). Open/storeadmin> Goods and type the right name for any item your inventory calls differently.Step 6: Test on a staging server
The RedEM:RP adapter follows the public API and is open in
bridge/server/frameworks/redemrp.lua. Buy, steal and rob once before going live.
Troubleshooting
A line of the bill is refunded and the item never arrives
The item name does not exist in redemrp_inventory, or the player is full. Fix the name in /storeadmin > Goods.
The framework is not detected
redem_roleplay was not started yet. Move ensure tlb-generalstore below it, or pick RedEM:RP in /storeadmin > System.
FAQ
Can I add items that are not in the default list?
Yes. Create goods in /storeadmin > Goods with the item name, a price and the props that sell it.
Where is the money of a sale?
In the store's register. On an NPC store it stays there; on an owned store, staff take it out from the account book.
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.