r_casino Configuration
r_casino config: framework, NPC and target, coins and r_store, rewards, commands and key, games on or off, history, big wins, Discord roles, logs and blip.
All settings live in config.lua. Restart the resource after changing it. Game odds are on
Games, the cases on Creating Cases.
General
R.Framework = "qbx" -- Options: ESX, qbcore, qbx
R.newESX = true -- if you use ESX 1.1 set this to false
R.CoreName = "es_extended" -- rename if your es_extended is renamed
R.Inventory = "ox_inventory" -- Options: ESX, qb-inventory, ox_inventory, quasar
R.UseTarget = false -- true to enable targeting the npc
R.Target = "ox_target" -- Options: ox_target, qb-target, none, custom
R.TextUI = "gta" -- 'gta' | 'ox_lib' | 'okok' | 'qb' | 'jg' | 'cd' | 'esx' | 'custom'
R.Debug = false -- print debug output to the server console
R.EnableAutoinsert = true -- auto-create SQL tables on first startWithout target, players press E at the NPC. The language comes from setr ox:locale in
server.cfg. Add your own by copying a file in locales/.
Prompt style and custom target
R.TextUI sets how the "press E" prompts look: gta (default, GTA help text), ox_lib, okok,
qb, jg, cd, esx or custom. For custom, edit BridgeTextUI in bridge/cl_textui.lua.
R.Target = 'none' uses the built-in key prompt, no target script needed. R.Target = 'custom'
is for any other target script: fill in BridgeCustomTarget in bridge/cl_target.lua with
AddBoxZone, AddModels, AddEntity and Remove. Each option has name, label, icon,
distance, canInteract and onSelect.
The bridge/ folder is open, so you can edit it freely.
Coins
R.UseRStoreCoins = true -- true to use r_store's coin balance instead of the casino's own
R.RStoreResourceName = "r_store"
R.EnableStore = true -- true to show a store button in the casino
R.StoreResourceName = "r_store"
R.StoreCommand = "store" -- command that opens the storeWith R.UseRStoreCoins = false the casino keeps its own balance. Give coins with
giveCasinoCredits <id> <amount> in the server console or the exports.
Buy Coins With In-Game Money
Off by default. Turn it on and a + button appears next to the balance. Players type how many coins
they want and pay with in-game money. With SellEnabled they can also cash their coins out.
R.BuyCredits = {
Enabled = false, -- players buy coins with in-game money from the + button next to the balance
Account = "bank", -- "bank" or "cash": where the money is taken from and paid to
BuyPrice = 100, -- in-game money a player pays for 1 coin
SellEnabled = false, -- true lets players cash coins out for in-game money
SellPrice = 90, -- in-game money paid for 1 coin cashed out
Min = 1, -- fewest coins in one transaction
Max = 100000, -- most coins in one transaction
DailyLimit = 0, -- most coins one player can buy, and cash out, per day (0 = no limit, resets on restart)
}- Set
BuyPriceandSellPriceto the same number for a 1:1 exchange. SellPriceaboveBuyPricewould give free money, so cash-outs stay off until you fix it.- Every exchange is posted to your Discord log.
With R.UseRStoreCoins = true and R_Store 2.2.0 or newer, the casino uses the R.BuyCredits block
in R_Store's config instead, so both share one rate. Turn it on there.
Rewards
R.MoneyCurrency = "bank" -- account cash rewards are paid into
R.VehicleGarage = "pillboxgarage" -- garage vehicle rewards are parked in (QBCore / QBX only)Commands & Key
R.GiveCreditCommand = "giveCasinoCredits" -- console: /giveCasinoCredits [id] [amount]
R.OpenCasinoCommand = "casino" -- user: open the casino
R.EnableFastKey = true
R.ToggleKey = "F5"
R.KeyText = "Open casino"Games On or Off
R.EnabledGames = {
cases = true,
coinflip = true,
mines = true,
crash = true,
plinko = true,
blackjack = true,
}History
R.History = {
Enabled = true, -- false hides the History page and stops recording
KeepDays = 30, -- rows older than this are deleted on resource start (0 = keep forever)
Limit = 100, -- how many of the player's latest games the UI loads
}Players only see their own games.
Big Wins
R.EnableWinNotifications = true -- notify all players when someone wins big
R.WinNotificationThreshold = 5000 -- minimum win amount to trigger the notificationDiscord Roles
Only needed if a case has requiredRole.
R.Discord = {
Enabled = false, -- true to enable Discord role checks
Type = "trase", -- Options: trase (trase_discord), badger (Badger_Discord_API)
}Needs trase_discord or Badger_Discord_API.
Logs
R.Enablelogs = true -- Discord webhook logging (set webhooks in sv_custom.lua)Each game has its own webhook at the top of server/sv_custom.lua, plus one for admin actions.
Empty ones are skipped.
NPC & Blip
R.EnablePed = true
R.Ped = {
Model = "s_m_y_casino_01",
Scenario = "WORLD_HUMAN_STAND_IMPATIENT",
Location = vector4(925.3286, 46.5176, 81.1063, 148.8192),
}
R.EnableBlip = true
R.BlipSettings = {
Name = "Casino",
Pos = vector3(925.3286, 46.5176, 81.1063),
Sprite = 617,
Display = 4,
Scale = 0.7,
Colour = 1,
}Interface
R.UI = {
Accent = "#9a27ea", -- one accent colour for the whole interface
Primary = "#ffffff", -- main action buttons (buy / play / confirm)
PrimaryText = "#000000", -- text on those buttons
NavActive = "", -- selected tab background, "" keeps the neutral default
NavActiveText = "#ffffff",-- selected tab text
DateFormat = "D.M.YYYY HH:mm", -- game history dates: 22.9.2026 18:42
ShowCaseOdds = true, -- show each item's drop chance in a case
}DateFormat examples: "DD/MM/YYYY HH:mm" gives 22/09/2026 18:42, "MM/DD/YYYY hh:mm A"
gives 09/22/2026 06:42 PM.