r_store Installation
Install r_store: download it from the Cfx.re Portal, set your framework and inventory, and ensure it after ox_lib, oxmysql and your framework.
Prerequisites
Installation Steps
Download & Extract
- Download R_Store from your Cfx.re Portal
- Extract the folder into your server's
resourcesdirectory - Make sure the folder is named exactly
r_store
r_store
bridgeopen: prompt style and custom target
- cl_textui.luaR.TextUI = 'custom'
- cl_target.luaR.Target = 'custom'
client
- cl_functions.luavehicle spawn and target
localesen, fi
server
- sv_custom.luadelivery, custom products, Discord webhook
web
build
mediayour product images
- config.luaevery setting and the catalog
- fxmanifest.lua
- sql.sqlonly if you import it yourself
Set your framework
In config.lua:
R.Framework = "qbx" -- Options: ESX, qbcore, qbx
R.newESX = true -- if you use ESX 1.1 set this to false
R.Inventory = "ox_inventory" -- Options: ESX, qb-inventory, ox_inventory, quasarAdd to server.cfg
Put it after ox_lib, oxmysql, your framework and inventory:
ensure ox_lib
ensure oxmysql
ensure qbx_core
ensure ox_inventory
ensure r_storeLanguage (optional, default English):
setr ox:locale "en" # en | fiRestart & connect
Restart your server, or run this in the server console. The tables are created on first start.
Connect and press F4 or type /store. Give yourself credits from the server console with
giveCredits <id> <amount>.
Updates
The console tells you when a new version is out. Download it from the Cfx.re Portal and replace the
folder, keeping your config.lua, bridge/, server/sv_custom.lua, client/cl_functions.lua, locales and
web/build/media/ images.
Keep the folder name r_store and don't change author in fxmanifest.lua, or the update
check stops.
Updating to 2.1.0
Copy the new R.TebexUrl, R.Daily, bundles = true and the bundle lines from the new
config.lua into yours, and add StoreHandlers and CanCarry from the new server/sv_custom.lua.
The database updates itself on start. If you run with R.EnableAutoinsert = false, run this once:
ALTER TABLE `r_store_purchases` MODIFY `item_type` ENUM('vehicle','item','weapon','money','gang','bundle','custom') NOT NULL;
ALTER TABLE `r_store_players` ADD COLUMN `daily_day` INT(11) NOT NULL DEFAULT 0, ADD COLUMN `daily_streak` INT(11) NOT NULL DEFAULT 0;