ns-shops β
Cross-framework RedM vendor shops via ns-lib. Players walk up to a shopkeeper NPC, press G, and buy items with cash or gold. Auto-detects VORP or RSG-Core.
Requirements β
- ns-lib (mandatory)
- VORP or RSG-Core
Installation β
- Drop the folder into
resources/ns-shops/. - Add to
server.cfgafterns-lib:ensure ns-lib ensure ns-shops - Restart the server. 9 default shops (3 general stores, 3 gunsmiths, 3 saloons) will spawn around the map.
Rebuilding the UI (optional) β
A prebuilt UI ships under html/ β a fresh install runs as-is. Only rebuild if you edit the React source under ui/:
cd ui
npm install
npm run build # writes to ../htmlConfiguration β
All settings live in config.lua:
| What you want to do | Where to edit |
|---|---|
| Add / remove / move a shop | Config.Shops |
| Change items, prices, or stock | Config.Items β each item has price = { cash = ..., gold = ... } |
| Set opening hours globally | Config.Hours |
| Set opening hours per shop | hours = { ... } inside that shop's entry |
Switch from G prompt to rsg-target eye | Config.Target.enabled = true |
| Hide gold pricing | Config.Currency.show_gold = false |
To add a shop, copy any entry in Config.Shops and change id, coords, ped, and categories. After editing, restart ns-shops in-game.
Item keys on RSG β
The default item list uses VORP keys (e.g. consumable_coffee). On RSG, the script resolves the equivalent RSG key automatically for known items. For custom items, add your own VORPβRSG mapping in server/itemmeta.lua.
