Explanation:
Do you like horse racing? And if you can bet with a friend, or with several friends, even alone with the bot, good...
This is my 2D horse racing script with multiplayer, bets and skins to differentiate your horse.
You can have a race with up to 6 horses, either bots or players betting against you.
Features:
- Standalone, ESX or QBCore.
- Animation of the player using the tablet while in the race.
- Define how many horses you will have in the race. Min: 2, Max: 6.
- Skin store (Currently has 10 skins).
- Menu to deposit money (Fixed amount per click)
- The player can withdraw all the money earned easily within a lobby.
- The player can choose the name that will appear in the lobby.
- Displays a list of all races created by players.
- The player can enter any race, just choose from the list.
- The player can create a new race whenever he wants.
- Empty lobby is automatically destroyed.
- In the lobby, the player can choose any horse available, just click on its number.
- To get off the horse, just click on its number again.
- All players who choose a horse must place a bet of any value and say READY.
- Chat in the lobby.
- Shows the number of unread messages.
- Spectator, players will be able to watch the races and use the chat.
- Notifications.
- Automatically remove a player if he falls, close the game (GTA).
- Displays the lobby id in the race.
- Displays the cash that a player has, and when clicking on it, withdraws all the money, if any.
Configuration (config.lua):
- Define the command that will be used to open the horse race.
- Define the framework you are using.
- Enable or disable tablet animation.
- Set the time the race will start once all players are READY!
- Set the amount that each player (per click) will deposit.
- You can define the maximum bet according to the number of horses, for example, the race is two horses, the player can only bet up to $200.
- Define whether chat will be enabled.
- Set chat min and max characters.
- Define whether chat cleaning will be enabled after a certain time.
- Define the maximum number of messages for chat cleaning to occur.
- Set the time to destroy and clear the chat.
- Define whether the skin store will be enabled.
- Define the minimum number of horses that the player can enter in the race.
- Enable or disable logs in the server console, you can choose which ones will appear.
- Enable or disable system messages in the lobby chat, you can choose which ones will appear.
Skins store (config.lua):
- You can set the price for each skin.
- Set a skin to $0 to show the free button.
- Skins are purchased with cash deposited in the game.
- The skins are not forever, that is, when the server restarts, they will be lost.
Cash deposited:
- Attention, the money deposited in the game must be withdrawn as soon as the player finishes playing.
- When the server restarts, the money will be lost. Do not use the game as a bank.
Translation (config.lua)
- You can translate the script easily.