Var FiveM
ScriptsBundlesDocs
VAR
Var FiveM
ScriptsBundlesDocs
NewsTheme CustomizerAboutContact
Shop Now

-- 29 sections

  • ›paintball
  • ›chess
  • ›supermarket simulator
  • ›coins shop
  • ›clothes shop
  • ›casino
    • installation
    • configuration
    • main-config
    • horse
    • lucky-whell
    • translate
  • ›drugs
  • ›clothes shop v2
  • ›interaction
  • ›emote
  • ›crew
  • ›alert job
  • ›pin code
  • ›society manager
  • ›property
  • ›barber shop
  • ›shop with basket
  • ›tattoo shop
  • ›gardener job
  • ›heist atm
  • ›heist fleeca
  • ›poster job
  • ›loading screen
  • ›bank
  • ›autocardealer
  • ›character creator
  • ›multi character
  • ›bill
  • ›tattoo shop v2

~/docs/casino/configuration/horse

casino docs›
  • installation
  • configuration
  • configuration/main-config
  • configuration/horse
  • configuration/lucky-whell
  • configuration/translate

Casino

Horse

-- 1 code block · 1 min read

get var-casinotry it on the test server
lua
Shared.Horse.MaxBet = 2000
Shared.Horse.StartingTimer = 5 -- In second
Shared.Horse.PedStartGame = true -- If true one of the players must go towards the foot to start the game once the bets have started ; If false it launch automatically every 2.30 if bets are made
Shared.Horse.TimerCountdown = 5 -- Timer if bets are made and if Shared.Horse.PedStartGame = false
Shared.Horse.PedCoords = vec3(1106.070312, 263.221985, -51.841064)

if Shared.Horse.PedStartGame then
    table.insert(Shared.PedSpawn, { model = "s_m_y_casino_01", pos = Shared.Horse.PedCoords, heading = 130.393707, name = "Jason",  anim = {"s_m_y_casino_01^1_dual-24", "mpcas_int-24"} })
end

-- The parameter "luck" corresponds to the odds betting on the horse.

Shared.HorseList = {
    {
        name = "Swift",
        luck = math.random(1, 10) / 10.0
    },
    {
        name = "Lightning",
        luck = math.random(1, 10) / 10.0
    },				
    {
        name = "Midnight",
        luck = math.random(1, 10) / 10.0
    },
    {
        name = "Storm",
        luck = math.random(1, 10) / 10.0
    },
    {
        name = "Thunder",
        luck = math.random(1, 10) / 10.0
    },
    {
        name = "Blaze",
        luck = math.random(1, 10) / 10.0
    }
}

The chances of victory are completely random; the only parameter that plays a role is luck, which plays a small role in the horse's victory.

If Shared.Horse.PedStartGame is activated then the game can only be started when a person has made a bet and initiates a race with the ped, however if it is not activated as soon as a player initiates a bet the countdown is spear

previousmain-confignextlucky-whell
VAR
Var FiveM

Premium FiveM scripts. Low resmon, high quality. Built for ESX, QBCore & Standalone.

28scripts
1,500+sales

Scripts

  • Marketplace
  • Bundles
  • Theme Customizer

Most Popular

  • Supermarket Simulator
  • FiveM Casino Script
  • FiveM Coin Shop
  • FiveM Emote Menu
  • FiveM Paintball Script
  • FiveM Clothing Shop Script
  • FiveM Interaction Script
  • FiveM Character Creator

Resources

  • Free Scripts
  • Guides
  • News
  • Documentation
  • Support

Company

  • About
  • Contact
  • Discord

Legal

  • Terms
  • Privacy
  • Refunds

© 2026 Var FiveM. All sales final.

Payments byTebex