The Lab
The Lab General Store · RedEM:RP

RedM general store script for RedEM:RP

For RedEM:RP servers, The Lab General Store uses redem_roleplay for the character, its job and its money, and redemrp_inventory 2.x for the goods. The default catalogue uses the same item names as on VORP.

Features

  • Character, job and grade read from redem_roleplay

  • Bills paid with the character's money, kept in the store's register

  • Goods given and taken back through redemrp_inventory 2.x

  • RedEM:RP admin and superadmin groups accepted for /storeadmin

  • Open adapter, editable without touching the escrowed code

Compatibility

Dependencies

redem_roleplay, redemrp_inventory (2.x API), oxmysql and OneSync.

Item names

redemrp_inventory has no export that lists its items, so the item picker of /storeadmin > Goods stays empty: type the item names yourself. Check once that the 33 default goods exist on your server and rename the ones that differ.

Full inventories

There is no capacity check export either. When a player cannot carry the goods, AddItem fails on its own: the item is not given and that line of the bill is refunded.

Start order

Start oxmysql, redem_roleplay and redemrp_inventory, then tlb-generalstore. The framework is detected from a started redem_roleplay.

Test first

The adapter ships open in bridge/server/frameworks/redemrp.lua, so it can be aligned with your inventory build. The script was checked on VORP: test a purchase, a theft and an owned store before going live.

By framework

Install guide

Install The Lab General Store on RedEM:RP

Install The Lab General Store on RedEM:RP: ensure after redem_roleplay and redemrp_inventory, grant the ACE and type your item names.

FAQ

Why is the item picker empty?

redemrp_inventory does not expose its item list. Type the item names in the goods form; they work the same way.

What do witnesses say about the thief?

The adapter does not read the character's sex, so witnesses describe "someone" rather than a man or a woman.

Does it work with redemrp_inventory 1.x?

The adapter targets the 2.x API. For an older build, adjust bridge/server/frameworks/redemrp.lua.