The Lab
The Lab General Store · RedEM:RP

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.

Estimated time: 20 minRedEM:RP

Before you start

  • redem_roleplay and redemrp_inventory 2.x
  • oxmysql
  • OneSync enabled

Install steps

  1. 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.

  2. 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.

  3. Step 3: Grant the admin permission

    RedEM:RP admin and superadmin groups are accepted too.

    add_ace group.admin tlb-generalstore.admin allow
  4. Step 4: Start order

    Start the framework before the store so it is detected.

    ensure oxmysql
    ensure redem_roleplay
    ensure redemrp_inventory
    # ...
    ensure tlb-generalstore
  5. Step 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.

  6. 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.