The Lab
The Lab Id · RSG

Install The Lab Id on RSG

RSG declares items in Lua rather than SQL, so this install edits rsg-core/shared/items.lua instead of importing a file. The rest happens in game with /idadmin.

Estimated time: 15 minRSG

Before you start

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

  2. Step 2: Declare the items in rsg-core

    Open installation/rsg-items.lua and copy its two entries into the items table of rsg-core/shared/items.lua.

    id_card     = { name = 'id_card',     label = 'Identity card',   weight = 10,  type = 'item', image = 'id_card.png',     unique = true, useable = true, shouldClose = true, description = 'Census certificate.' },
    census_book = { name = 'census_book', label = 'Census registry', weight = 500, type = 'item', image = 'census_book.png', unique = true, useable = true, shouldClose = true, description = 'List of the residents registered in a town.' },
  3. Step 3: Copy the image

    Put the files from installation/item-images/ into rsg-inventory/html/images/.

  4. Step 4: Start order

    Start the framework before tlb-id so it is detected.

    ensure oxmysql
    ensure rsg-core
    ensure rsg-inventory
    # ...
    ensure tlb-id
  5. Step 5: Open the admin panel

    Players in the RSG admin or god group can use /idadmin right away. Add an office at your position, choose the jobs that may read its registry, and Save.

  6. Step 6: Test on a staging server

    The RSG adapter was not tested in production by us. Register a character, pay a fee at a paid office and read the registry with an allowed job before going live.

Troubleshooting

The item has no picture

The image file name must match the image field (id_card.png) and sit in rsg-inventory/html/images/.

The fee is not taken

The adapter charges cash. A character with only bank money cannot pay.

FAQ

Can I rename the items?

Yes. Change the names in /idadmin > System, in rsg-core/shared/items.lua and on the image files.

Does a new character need a new card?

Yes. Cards are tied to the citizen ID.