RedM general store script for RSG
On RSG, The Lab General Store takes the character and cash from rsg-core and gives the goods through rsg-inventory. A base RSG inventory names its items differently from VORP, so the default catalogue switches to RSG names on first start.
Features
19 default goods with RSG item names, linked to the vanilla shelf props
Bills paid in cash through rsg-core, money kept in the store's register
Item picker fed by RSG shared items
RSG
adminandgodpermissions accepted for/storeadminStores owned by an RSG job, from the grade level you choose
Compatibility
Dependencies
rsg-core, rsg-inventory, oxmysql and OneSync. ox_lib is optional: when it runs, notifications use it, otherwise they go through RSGCore:Notify.
RSG default goods
19 default goods exist in a base RSG inventory (canned_peaches, coffee, glass_whisky, cigar, bandage and more), already linked to the shelf props. Goods with no RSG equivalent are left out.
Start order
Start oxmysql and the RSG stack first, then tlb-generalstore, so that rsg-core is already running when the resource looks for a framework.
Items
The item picker of /storeadmin > Goods lists RSGCore.Shared.Items. Purchases check CanAddItem in rsg-inventory first, and the usual item box shows what was added or taken back.
Test first
The RSG adapter ships open in bridge/server/frameworks/rsg.lua and follows the public RSG API; the script was checked on VORP. Run through a purchase, a theft and an owned store on a test server before going live.
By framework
Install guide
Install The Lab General Store on RSG
Install The Lab General Store on RSG: no items to declare, ensure after rsg-core, grant the admin ACE and check the RSG default goods.
FAQ
Why fewer default goods than on VORP?
Only goods that exist in a base RSG inventory are created. Add your own items as goods in /storeadmin > Goods.
Do I edit rsg-core/shared/items.lua?
No. The store only sells items that already exist there.
Which job names count as lawmen?
sheriff and marshal by default. Change the list in /storeadmin > Rules > The law to match your RSG job names.