Skip to content

casino pack for QBCore Framework

Notifications You must be signed in to change notification settings

balcer64/-casino-

 
 

Repository files navigation

W.I.P [ qb-casino (bank) ] W.I.P

Edited Casino Pack for QBus

Casino Entrance

  • Casino IPL: (casino accessible without the use of teleports)

preview

source

Casino Luckywheel

  • Luckywheel: (peek to spin the luckywheel with $5000 a V.I.P membership)

preview

source

Casino Inside Track

  • Inside Track: (bet on virtual racehorses with a casino membership and a $100 min bet)

preview

source

Casino Blackjack

  • Blackjack: (play 14 blackjack tables with a casino membership and a $10 min bet)

preview

source

Casino Slot Machines (contact if interested)

  • Slot Machines: (play 44 slotmachines with a casino membership and a different bet each slot) -REMOVED

preview -REMOVED

source -REMOVED

Casino Roulette

  • Roulette: (w.i.p more info coming soon)

preview

source

Required to work properly

qb-menu

General

textUi

General

casinoUi

General

  • qb-inventory/client/main.lua
RegisterNetEvent('qb-casino:client:openCasinoMembersips')
AddEventHandler('qb-casino:client:openCasinoMembersips', function()
    local ShopItems = {}
    ShopItems.label = "Diamond Casino Memberships"
    ShopItems.items = Config.CasinoMemberships
    ShopItems.slots = #Config.CasinoMemberships
    TriggerServerEvent("inventory:server:OpenInventory", "shop", "Vendingshop_", ShopItems)
end)
  • qb-inventory/config.lua
Config.CasinoMemberships = {
    [1] = { name = "member", price = 500, amount = 5, info = {}, type = "item", slot = 1 },
    [2] = { name = "vip",    price = 750, amount = 5, info = {}, type = "item", slot = 2 }
}
  • qb-core/shared.lua info
["member"]= {
    ["name"] = "member",
    ["label"] = "Casino Membership",
    ["weight"] = 500,
    ["type"] = "item",
    ["image"] = "member.png",
    ["unique"] = false,
    ["useable"] = false,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Diamond Casino Member Card"
},

["vip"]= {
    ["name"] = "vip",
    ["label"] = "V.I.P Membership",
    ["weight"] = 500,
    ["type"] = "item",
    ["image"] = "vip.png",
    ["unique"] = false,
    ["useable"] = false,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Diamond Casino V.I.P Card"
},
  • qb-target info
-- Lucky wheel
exports['qb-target']:AddCircleZone("LuckyWheel", vector3(949.391, 44.72, 71.638), 2.0, {
    name="LuckyWheel",
    heading=160,
    debugPoly=false,
    useZ=true,
    }, {
        options = {
            {
                event = "luckywheel:client:startWheel",
                icon = "fas fa-sync-alt",
                label = "Try Your Luck",
            },
        },
    distance = 2.0 
})

-- Horse Bets
exports['qb-target']:AddCircleZone("Betting", vector3(956.121,70.185,70.433), 1.0, {
    name="Betting",
    heading=160,
    debugPoly=false,
    useZ=true,
}, {
    options = {
        {
            event = "QBCore:client:openInsideTrack",
            icon = "fas fa-coins",
            label = "Start Betting",
        },
    },
    distance = 3.0 
})

-- Casino Shop
exports['qb-target']:AddTargetModel(`U_F_M_CasinoCash_01`, {
	options = {
        { 
            event = "doj:casinoChipMenu", --NotUsed
            icon = "fas fa-exchange-alt",
            label = "Exchange Casino Chips", 
        },
        {
            event = "qb-casino:client:openCasinoChips", --NotUsed
            icon = "fas fa-coins",
            label = "Purchase Casino Chips", 
        },
        {
            event = "qb-casino:client:openCasinoMembersips", 
            icon = "fas fa-id-card",
            label = "Purchase Casino Memberships", 
        },
	},
	distance = 3.0 
})

About

casino pack for QBCore Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.0%
  • Lua 38.1%
  • HTML 0.9%