GTA Online Diamond Casino & Resort

GTA Online Diamond Casino & Resort


Introduction

The GTA Online Diamond Casino & Resort resource allows players to enter and gamble at the Diamond Casino much like in GTA Online.

Experience the thrill of a virtual casino with this FiveM resource. Enjoy GTA Online’s popular games like Lucky Wheel, Slot Machines, Inside Track horse racing, and Blackjack. With easy customization for everything from bets, game locations, and more, this resource offers a dynamic and engaging roleplay addition to your server.

Preview Video

If this resource sounds interesting, or you’d like to see an example of how it works :arrow_forward: feel free to watch the preview video.

The preview video shows all the available games in the casino.

Purchase Options

This resource is available for purchase as both a cheap, encrypted version using CFX Escrow, or a higher priced open source version

:shopping_cart: GTA Online Diamond Casino & Resort (CFX ASSET ESCROW)

:shopping_cart: GTA Online Diamond Casino & Resort (OPEN SOURCE)

Games & Features

The casino includes games from the GTA Online version, including:

  • Lucky Wheel:
    Players can spin the lucky wheel, with a customizable cooldown, in-order to gain rewards such as money, chips, vehicles, and more! The rewards, and weights for the rewards are all easily customizable.

  • Slot Machines:
    Players can try their luck to win the slot jackpots,players can either bet one, or bet max and spin to win! The minimum and maximum bets, as well as the slot machines are all easily customizable.

  • Inside Track:
    Players can bet on their favourite horses or bet against the odds and try to win it all at the horse races. The minimum and maximum bets, as well as the maximum payout, and horse odds range can be changed easily.

  • Blackjack:
    Players can try their best to beat the dealer in Blackjack. The minimum and maximum bets, as well as the max table limits are all easily customizable.

  • Premium Membership:
    There is also a premium membership, that you can use as a money sink and a prerequisite for players to be able to play the available games at the casino and access premium only areas.

Customizable

The resource has been built from the ground up to be easily customizable, both the escrow and non-escrow version. This customizability includes all framework-dependent features, notifications, game locations, min/max bets, and more.
This resource also utilizes a built-in version of DCLS, a dynamic client localization system that allows for better player accessibility.

Click on the images to view their full size





Requirements

This resource is completely standalone and does not require any specific framework.

  • This resource uses data, animations, and audio from the “The Diamond Casino & Resort” update. So a game build of 2060 or higher is required, the resource was created on build 2944.
    Read more about enforcing game builds in the FiveM documents
  • Although it is not a hard requirement, it is very highly recommended to have a database resource to save users premium membership and lucky wheel spin cooldowns, (The resource was designed and tested with oxmysql), allowing player’s progress to save. The system can work as normal if one is not available, but changes will need to be made to the available database file, and certain features may not work as expected.
  • An IPL resource is required, by default this resource is setup for bob74_ipl , if you use a different IPL resource, then you will need to edit the coordinates in the available config files.
  • It’s recommended to use the latest recommended server artifact to ensure FiveM runs correctly.

If you have any questions I’d be happy to answer them below.


My Other Work

Code is accessible Yes - No
Subscription-based No
Lines (approximately) 4,600+
Requirements Game Build >= 2060 (The Diamond Casino & Resort), bob74_ipl (or equivalent casino IPL loader), oxmysql (or equivalent database resource)
Support Yes
4 Likes

Nice to see you back!

1 Like

Thank you, been busy working on other programming projects and playing other games like Arma 3 and Baldurs Gate, but it’s nice to be back working on fivem projects in my free time. :smile:

1 Like

What is the comand to check your chips when in the casino I did /chips and /casinochips and nothing worked. I am on QBcore. Also the lucky wheel spin doesn’t give a notification for winning your prize and it also doesn’t give you the prize. Please help

In it’s default setup for ESX and QBCore, the chips are items in the players inventory, therefore there is no command to view how many chips the player has on them.

You will need to setup the lucky wheel server function in-order to handle how you want players to receive their prizes. As an example for QBCore you can set it up like this,

-- Function called when the player wins on the lucky wheel
Config.HandleLuckyWheelReward = function(source, rewardIndex, reward)
    if reward.type == "money" then
        Config.AddMoney(source, reward.count or 0)
        TriggerClientEvent('QBCore:Notify', source, string.format("You've won $%s from the lucky wheel", reward.count or 0), 'primary', 5000)
    elseif reward.type == "chips" then
        Config.AddChips(source, reward.count or 0)
        TriggerClientEvent('QBCore:Notify', source, string.format("You've won %s casino chips from the lucky wheel", reward.count or 0), 'primary', 5000)
    elseif reward.type == "car" then
        local player = QBCore.Functions.GetPlayer(source)
        local plate = GeneratePlate()
        MySQL.insert('INSERT INTO player_vehicles (license, citizenid, vehicle, hash, mods, plate, garage, state) VALUES (?, ?, ?, ?, ?, ?, ?, ?)', {
            player.PlayerData.license,
            player.PlayerData.citizenid,
            Config.LuckyWheel.PodiumCar,
            GetHashKey(Config.LuckyWheel.PodiumCar),
            '{}',
            plate,
            'pillboxgarage',
            1
        })
        TriggerClientEvent('QBCore:Notify', source, "You've won the podium vehicle from the lucky wheel", 'primary', 5000)
    end
end


function GeneratePlate()
    local plate = QBCore.Shared.RandomInt(1) .. QBCore.Shared.RandomStr(2) .. QBCore.Shared.RandomInt(3) .. QBCore.Shared.RandomStr(2)
    local result = MySQL.scalar.await('SELECT plate FROM player_vehicles WHERE plate = ?', {plate})
    if result then
        return GeneratePlate()
    else
        return plate:upper()
    end
end

Paid for the full script have been tinkering with it the past day or so. Script loads and works because I get teleported in, but I can’t interact with any machines, games, or NPCs inside. Any help???

There maybe an error in your config, or a function that gets called when you enter the casino.
Check your server and client console for any errors that might appear when you start the resource and when you enter the casino.

1 Like

Okay, I figured it out! I don’t use QBcore or ESX. I downloaded ESX just to plug it in and now your script seems to work. I think I’ll keep ESX as a type of middleman because it can function your script and some others I could use now. I will just have a very gutted and modified ESX eventually lol.

I do need help figuring out how to load the currency though. I can’t seem to find the config for which currency it’s drawing.

is the premium thing supposed to be a license???