The Lab
The Lab Id · VORP

Install The Lab Id on VORP

This guide gets census offices running on a VORP server, from the item SQL to the first card issued. Gameplay settings are all made in game afterwards, so there is no config file in this guide.

Estimated time: 15 minVORP

Before you start

  • vorp_core and vorp_inventory
  • oxmysql connected to your database
  • OneSync enabled
  • Database access (HeidiSQL, phpMyAdmin or the mysql client)

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-id. Extract the archive: you get a single tlb-id folder. Keep the folder name as it is.

  2. Step 2: Add the two items

    Run installation/vorp-items.sql on your VORP database. It adds id_card and census_book and skips them if they already exist.

    mysql -u <user> -p <database> < tlb-id/installation/vorp-items.sql
  3. Step 3: Copy the item image

    Copy the files from installation/item-images/ into vorp_inventory/html/img/items/, then restart vorp_inventory.

  4. Step 4: Grant admin access

    VORP admin and superadmin groups are accepted. To give access through ACE instead, add this to server.cfg:

    add_ace group.admin tlb-id.admin allow
  5. Step 5: Ensure it after the framework

    tlb-id reads the framework at start, so it goes after oxmysql and the VORP resources.

    ensure oxmysql
    ensure vorp_core
    ensure vorp_inventory
    # ...
    ensure tlb-id
  6. Step 6: Create your first census office

    Start the server, stand where the clerk should be and type /idadmin. In Offices, choose "add at my position", set the town name, price and registry jobs, then Save. The tlb_id_cards table is created on this first start.

  7. Step 7: Issue a test card

    Walk up to the NPC, hold right click and press E to register. Fill in the card, then check the id_card item in your inventory.

Troubleshooting

The card is not given

The id_card item is missing from the items table, or vorp_inventory was not restarted after the SQL import.

`/idadmin` says no permission

Your account or character group is not admin/superadmin, and the ACE line is missing or does not match your group.

Locked out after changing the admin ACE

Stop the server, delete the system block in data/settings.json to restore defaults, and start again.

FAQ

Can I run the SQL file again after an update?

Yes. It uses INSERT IGNORE, so existing items are left alone.

Where are offices and settings saved?

In data/settings.json, written by the admin panel. Do not edit it while the server runs.