r_casino Installation
Install r_casino: 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_Casino from your Cfx.re Portal
- Extract the folder into your server's
resourcesdirectory - Make sure the folder is named exactly
r_casino
r_casino
bridgeopen: prompt style and custom target
- cl_textui.luaR.TextUI = 'custom'
- cl_target.luaR.Target = 'custom'
client
- cl_functions.luatarget and NPC
localesen, fi
server
- sv_custom.luarewards, notifications, Discord webhooks
web
build
mediacase and item images
- config.luaevery setting, games and cases
- 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, quasarNot running R_Store? Set R.UseRStoreCoins = false and R.EnableStore = false.
Add to server.cfg
Put it after ox_lib, oxmysql and your framework (and r_store, if you use it):
ensure ox_lib
ensure oxmysql
ensure qbx_core
ensure r_store
ensure r_casinoLanguage (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 F5 or type /casino.
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. Coin balances stay in the database.
Keep the folder name r_casino and don't change author in fxmanifest.lua, or the update
check stops.