The Lab
The Lab Id · RSG

RedM ID card script for RSG

On RSG, The Lab Id takes character data from rsg-core and gives the card through rsg-inventory. Items are declared in the shared item list rather than in SQL, and RSG permission groups work for the admin panel.

Features

  • Card and registry as unique rsg-inventory items

  • Character name, birth date and sex read from RSG charinfo

  • Census fee charged through rsg-core

  • RSG admin groups accepted for /idadmin

  • 14 languages switchable in game

Compatibility

Dependencies

rsg-core, rsg-inventory, oxmysql and OneSync.

Declaring the items

Copy the two entries of installation/rsg-items.lua (id_card and census_book, both unique and usable) into rsg-core/shared/items.lua. Put id_card.png into rsg-inventory/html/images/.

Start order

Start oxmysql and the RSG stack first, then tlb-id, so that rsg-core is already running when the resource looks for a framework.

Admins and jobs

Players in the RSG admin or god group can open /idadmin, in addition to the tlb-id.admin ACE. Registry jobs per office are matched against the RSG job name.

Test first

The RSG adapter ships open in bridge/server/frameworks/rsg.lua, and the script was tested on VORP. Run through registration, payment and the registry on a test server before going live.

By framework

Install guide

Install The Lab Id on RSG

Install The Lab Id on RSG: add id_card and census_book to rsg-core shared items, copy the image to rsg-inventory and set up offices in game.

FAQ

Do I run the VORP SQL file on RSG?

No. On RSG, items come from rsg-core/shared/items.lua. The only table, tlb_id_cards, is created automatically.

Where does the citizen ID go?

It identifies the card holder, so a new character gets its own card.

Can sheriffs read the registry?

Yes, if their job is in the office's allowed jobs. Set it per office in /idadmin > Offices.