The Lab
The Lab General Store · VORP

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.

Estimated time: 15 minVORP

Before you start

  • vorp_core and vorp_inventory
  • 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

    vorp_stores puts 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_stores
  3. Step 3: Grant the admin permission

    VORP admin and superadmin groups are accepted as well, but the ACE works for everyone you put in the group.

    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 vorp_core
    ensure vorp_inventory
    # ...
    ensure tlb-generalstore
  5. Step 5: Check the goods

    Start the server: the tlb_gs_* tables and data/settings.json are created with the eight stores and 33 default goods. Open /storeadmin > Goods and make sure each item name exists in your items table; the picker lists them.

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