Skip to main content

Basic Configuration

Framework Settings

R.Framework = "ESX" -- Options: ESX, qbcore, qbx
R.newESX = true
R.CoreName = "es_extended"
R.Inventory = "ox_inventory"

R_Store Coin Integration

Use r_store coins instead of separate casino coins:
R.UseRStoreCoins = false -- Set true to use r_store coins
R.RStoreResourceName = "r_store"

Store Integration

Show store button in casino:
R.EnableStore = false -- Enable to show store button
R.StoreResourceName = "r_store"
R.StoreCommand = "store"

Discord Settings

Configure logging with Trase or Badger Discord:
R.Discord = {
    Enabled = true,
    Type = "trase", -- Options: trase, badger
}
Required Resources:

Commands

R.GiveCreditCommand = "giveCasinoCredits" -- Admin
R.OpenCasinoCommand = "casino" -- User

Fast Key

R.EnableFastKey = true
R.ToggleKey = "F5"
R.KeyText = "Open r_casino"

Win Notifications

R.EnableWinNotifications = true
R.WinNotificationThreshold = 5000 -- Minimum win to notify server

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,
}

Example Configurations

R.Framework = "ESX"
R.UseRStoreCoins = false
R.EnableStore = false
R.EnableWinNotifications = true
R.UseRStoreCoins = true
R.RStoreResourceName = "r_store"
R.EnableStore = true
R.StoreResourceName = "r_store"