Var-Documentation
  • 📚Var Documentation
  • 🌎Theme / Translate
    • Change theme
    • Change language
  • 🔓For open source
    • Change UI
  • 👕Clothes Shop
    • Installation
    • 🔩Configuration
      • đŸŗī¸Blips/Marker
      • 📚Translate
      • 📷Change cam and pos
  • 🃏Casino
    • Installation
    • 🔩Configuration
      • đŸŗī¸Main config
      • 🏇Horse
      • 🎡Lucky Whell
      • 📚Translate
  • đŸ•ēEmote
    • Installation
    • 🔩Configuration
      • đŸŗī¸Main config
      • 💃Emote List
      • 📚Translate
  • âš”ī¸Crew
    • Installation
    • đŸĒ›Export
  • 👮Alert Job
    • Installation
    • đŸĒ›Server Export
  • 🔐Pin Code
    • Installation
    • đŸĒ›Export
  • đŸĸSociety Manager
    • Installation
    • đŸĒ›Export
    • 🔩Configuration
      • 📚Translate
      • đŸ’ĩMax salary
      • 📜Last invoice
  • đŸ˜ī¸Property
    • Installation
    • 🔩Configuration
      • 📚Translate
      • đŸ–ŧī¸Add interior
  • 💈Barber shop
    • Installation
    • 🔩Configuration
      • 🔓Change menu (Open source)
      • đŸŗī¸Blips
      • 📚Translate
      • âœ‚ī¸Add shop
  • 🛒Shop with basket
    • Installation
    • 🔩Configuration
      • 🍏Item/Category config
      • đŸŗī¸Blips/Marker
      • 📚Translate
      • ➕Add shop
  • đŸ–‹ī¸Tattoo shop
    • Installation
    • 🔩Configuration
      • âœī¸Edit Tattoo
      • đŸŗī¸Blips/Marker
      • 📚Translate
      • ➕Add shop
  • 🏡Gardener Job
    • Installation
    • 🔩Configuration
      • â„šī¸Change pos farm
      • đŸŗī¸Blips
      • 📚Translate
  • 🏧Heist ATM
    • Installation
    • 🔩Configuration
      • 💰Event money
      • 📚Translate
      • 👮Police alert
  • đŸĻHeist Fleeca
    • Installation
    • 🔩Configuration
      • 📚Translate
      • 📍Pos Fleeca Heist
  • đŸ™ī¸Poster Job
    • Installation
    • 🔩Configuration
      • â„šī¸Change pos farm
      • đŸ–ŧī¸Change poster texture
      • đŸŗī¸Blips/Marker
      • 📚Translate
  • đŸ–ŧī¸Loading Screen
    • Installation
    • âš™ī¸Configuration
  • đŸĻBank
    • Installation
    • 🔩Configuration
      • đŸ§â€â™‚ī¸Ped
      • đŸŗī¸Blips
      • 📚Translate
      • 🚩Add Bank Pos
      • đŸĸSociety
  • 🚘AutoCarDealer
    • Installation
    • 🔩Configuration
      • ➕Add Vehicles
      • 📚Translate
      • đŸŗī¸Blips
      • 📍Coords
  • 📸Character Creator
    • Installation
    • 🔩Configuration
      • 📚Translate
      • 😃Expression
      • âš™ī¸Spawn
  • đŸ‘ĨMulti Character
    • Installation
    • 🔩Configuration
      • 📚Translate
      • 📸Change Character Creator
      • âš™ī¸Commands
  • 📝Bill
    • Installation
    • 🔩Configuration
      • 📚Translate
      • #ī¸âƒŖControl
Powered by GitBook
On this page
  1. Casino
  2. Configuration

Horse

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

Last updated 11 months ago

🃏
🔩
🏇