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.
Before you start
rsg-coreandrsg-inventoryoxmysql- OneSync enabled
Install steps
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 singletlb-idfolder. Keep the folder name as it is.Step 2: Declare the items in rsg-core
Open
installation/rsg-items.luaand copy its two entries into the items table ofrsg-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.' },Step 3: Copy the image
Put the files from
installation/item-images/intorsg-inventory/html/images/.Step 4: Start order
Start the framework before
tlb-idso it is detected.ensure oxmysql ensure rsg-core ensure rsg-inventory # ... ensure tlb-idStep 5: Open the admin panel
Players in the RSG
adminorgodgroup can use/idadminright away. Add an office at your position, choose the jobs that may read its registry, and Save.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.
Related guides
- Install oxmysql on RedMSet up oxmysql for RedM: download the release build, set mysql_connection_string, ensure it first and fix the usual connection errors.
- RedM server.cfg ensure orderWhy start order matters in a RedM server.cfg and the order that works: database, libraries, framework core, inventory, then your scripts.
- How to install a RedM scriptInstall any RedM resource: get the files, check fxmanifest dependencies, add SQL and items, place the ensure line and test from the console.