RedM general store script for VORP
On VORP, The Lab General Store reads the character from vorp_core, takes the bill from the character's cash and hands the goods over through vorp_inventory. The default goods use VORP item names, so the shelves sell on first start.
Features
33 default goods with VORP item names, linked to the vanilla shelf props
Bills paid from the character's cash, money kept in the store's register
Item picker fed by the VORP
itemstableWitness reports say "a man" or "a woman" from the character's gender
Stores owned by a VORP job, with a managing grade
Compatibility
Dependencies
vorp_core, vorp_inventory, oxmysql and OneSync. No item has to be added: the goods are items your server already has.
Replace vorp_stores at the counters
The eight general stores stand where vorp_stores puts its own clerks. Comment ensure vorp_stores (or remove those stores from its config), otherwise two clerks stand at the same counter.
Start order
ensure oxmysql, then your VORP resources, then ensure tlb-generalstore. The framework is detected from a started vorp_core; it can also be fixed in /storeadmin > System.
Items and carrying weight
The item picker of /storeadmin > Goods lists the rows of the VORP items table. Before giving goods, the adapter checks canCarryItem, so a full inventory refuses the purchase instead of losing it.
Admins, jobs and lawmen
VORP admin and superadmin groups, on the account or on the character, are accepted next to the tlb-generalstore.admin ACE. Store owners by job and the lawmen list (sheriff, marshal by default) are matched against the VORP character job and grade.
By framework
Install guide
Install The Lab General Store on VORP
Install The Lab General Store on VORP: turn off vorp_stores at the counters, grant the admin ACE, ensure after VORP and check the goods.
FAQ
Does it pay with bank money?
No. Bills are paid in cash, the money a character carries.
A purchase is refused or an item never arrives. Why?
The player cannot carry the goods, which refuses the purchase before any money is taken, or the item name is not in your items table. Fix the name in /storeadmin > Goods; the picker lists your VORP items.
Is any SQL needed?
No. The tlb_gs_registers, tlb_gs_stock and tlb_gs_ledger tables are created on first start.