Configuration

Don't touch this lines

Config, Tabs, Noti = {}, {}, {}
Config, Tabs, Noti = {}, {}, {}

--$$$$$$\   $$$$$$\  $$\   $$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ $$$$$$$\   $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ 
--$$  __$$\ $$  __$$\ $$$\  $$ |$$  _____|\_$$  _|$$  __$$\ $$ |  $$ |$$  __$$\ $$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |
--$$ /  \__|$$ /  $$ |$$$$\ $$ |$$ |        $$ |  $$ /  \__|$$ |  $$ |$$ |  $$ |$$ /  $$ |  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |
--$$ |      $$ |  $$ |$$ $$\$$ |$$$$$\      $$ |  $$ |$$$$\ $$ |  $$ |$$$$$$$  |$$$$$$$$ |  $$ |     $$ |  $$ |  $$ |$$ $$\$$ |
--$$ |      $$ |  $$ |$$ \$$$$ |$$  __|     $$ |  $$ |\_$$ |$$ |  $$ |$$  __$$< $$  __$$ |  $$ |     $$ |  $$ |  $$ |$$ \$$$$ |
--$$ |  $$\ $$ |  $$ |$$ |\$$$ |$$ |        $$ |  $$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |  $$ |     $$ |  $$ |  $$ |$$ |\$$$ |
--\$$$$$$  | $$$$$$  |$$ | \$$ |$$ |      $$$$$$\ \$$$$$$  |\$$$$$$  |$$ |  $$ |$$ |  $$ |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |
 --\______/  \______/ \__|  \__|\__|      \______| \______/  \______/ \__|  \__|\__|  \__|  \__|   \______| \______/ \__|  \__|

--Use "esx" or "qb"
Config.Framework = "qb"
--If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = ""
--Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
--oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql" 
--To receive logs via discord when users acquire a vehicle
Config.webhookcar = ""
--To receive logs through discord when users change their name
Config.webhookname = ""
--To receive logs through discord when users change their phone number
Config.webhookphone = ""
--To receive logs through discord when users change their vehicle plate
Config.webhookplate = ""
--To receive logs via discord when users acquire a weapon
Config.webhookweapon = ""
--To receive logs via discord when users acquire money
Config.webhookmoney = ""
--To receive logs through discord when new codes are generated
Config.webhookgeneratedcode = ""
--To receive logs through discord when a user uses a code
Config.webhookusedcode = ""
--To receive logs through discord when making a payment
Config.webhookpayments = ""
--If held true, the menu can be opened by pressing a key.
Config.OpenWithKey = true
--F3 - https://docs.fivem.net/docs/game-references/controls/
Config.OpenKey = 170 
--Only set to true if you use cd_garage
Config.useCDgarage = false
--your discord or website to buy coins
urlbuy = "https://bit.tebex.io" 
--This groups will have permissions to generate codes
Config.adminsGroups = {"admin", "superadmin","god"}


--$$\   $$\ $$$$$$$$\ $$\     $$\ 
--$$ | $$  |$$  _____|\$$\   $$  |
--$$ |$$  / $$ |       \$$\ $$  / 
--$$$$$  /  $$$$$\      \$$$$  /  
--$$  $$<   $$  __|      \$$  /   
--$$ |\$$\  $$ |          $$ |    
--$$ | \$$\ $$$$$$$$\     $$ |    
--\__|  \__|\________|    \__|

--Function for handing over the vehicle keys at the time of delivery

function giveKeys(vehicle)
    --example with qb:
    --TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(vehicle))
end

--$$$$$$$\  $$\   $$\  $$$$$$\  $$\   $$\ $$$$$$$$\        $$$$$$\  $$\   $$\ $$$$$$$$\  $$$$$$\  $$\   $$\ 
--$$  __$$\ $$ |  $$ |$$  __$$\ $$$\  $$ |$$  _____|      $$  __$$\ $$ |  $$ |$$  _____|$$  __$$\ $$ | $$  |
--$$ |  $$ |$$ |  $$ |$$ /  $$ |$$$$\ $$ |$$ |            $$ /  \__|$$ |  $$ |$$ |      $$ /  \__|$$ |$$  / 
--$$$$$$$  |$$$$$$$$ |$$ |  $$ |$$ $$\$$ |$$$$$\          $$ |      $$$$$$$$ |$$$$$\    $$ |      $$$$$  /  
--$$  ____/ $$  __$$ |$$ |  $$ |$$ \$$$$ |$$  __|         $$ |      $$  __$$ |$$  __|   $$ |      $$  $$<   
--$$ |      $$ |  $$ |$$ |  $$ |$$ |\$$$ |$$ |            $$ |  $$\ $$ |  $$ |$$ |      $$ |  $$\ $$ |\$$\  
--$$ |      $$ |  $$ | $$$$$$  |$$ | \$$ |$$$$$$$$\       \$$$$$$  |$$ |  $$ |$$$$$$$$\ \$$$$$$  |$$ | \$$\ 
--\__|      \__|  \__| \______/ \__|  \__|\________|       \______/ \__|  \__|\________| \______/ \__|  \__|

--You can modify this function as you need to restrict certain phone numbers or check that they have specific characteristics
--If you do not want any check to be performed, delete everything and add a "return true"

function checkNumber(number)
    --Example checking that the number starts with "123xxxxxx" and has a minimum amount of 5 digits

    --local stringNumber = string.sub(number, 1, 3)
    --if stringNumber == 123 and #number >= 5 then
    --    return true
    --else
    --    return false
    --end

    --if you do not want to use this function simply return true:
    return true
end

--$$$$$$$\  $$\        $$$$$$\ $$$$$$$$\ $$$$$$$$\        $$$$$$\  $$\   $$\ $$$$$$$$\  $$$$$$\  $$\   $$\ 
--$$  __$$\ $$ |      $$  __$$\\__$$  __|$$  _____|      $$  __$$\ $$ |  $$ |$$  _____|$$  __$$\ $$ | $$  |
--$$ |  $$ |$$ |      $$ /  $$ |  $$ |   $$ |            $$ /  \__|$$ |  $$ |$$ |      $$ /  \__|$$ |$$  / 
--$$$$$$$  |$$ |      $$$$$$$$ |  $$ |   $$$$$\          $$ |      $$$$$$$$ |$$$$$\    $$ |      $$$$$  /  
--$$  ____/ $$ |      $$  __$$ |  $$ |   $$  __|         $$ |      $$  __$$ |$$  __|   $$ |      $$  $$<   
--$$ |      $$ |      $$ |  $$ |  $$ |   $$ |            $$ |  $$\ $$ |  $$ |$$ |      $$ |  $$\ $$ |\$$\  
--$$ |      $$$$$$$$\ $$ |  $$ |  $$ |   $$$$$$$$\       \$$$$$$  |$$ |  $$ |$$$$$$$$\ \$$$$$$  |$$ | \$$\ 
--\__|      \________|\__|  \__|  \__|   \________|       \______/ \__|  \__|\________| \______/ \__|  \__|

--You can modify this function as you need to restrict certain plate numbers or check that they have specific characteristics
--If you do not want any check to be performed, delete everything and add a "return true"

function checkPlate(plate)
    --Example checking that the number starts with "BITxxxxxx" and has a minimum amount of 5 digits

    --local stringPlate = string.sub(plate, 1, 3)
    --if stringPlate == "BIT" and #plate >= 5 then
    --    return true
    --else
    --    return false
    --end

    --if you do not want to use this function simply return true:
    return true
end

--$$$$$$$$\  $$$$$$\  $$$$$$$\   $$$$$$\  
--\__$$  __|$$  __$$\ $$  __$$\ $$  __$$\ 
   --$$ |   $$ /  $$ |$$ |  $$ |$$ /  \__|
   --$$ |   $$$$$$$$ |$$$$$$$\ |\$$$$$$\  
   --$$ |   $$  __$$ |$$  __$$\  \____$$\ 
   --$$ |   $$ |  $$ |$$ |  $$ |$$\   $$ |
   --$$ |   $$ |  $$ |$$$$$$$  |\$$$$$$  |
   --\__|   \__|  \__|\_______/  \______/

--Leave the fields empty if you want to keep the default functions of each tab.
--If you want a command to be executed when you click on a tab, type the command, if you want a web page to open when you click on it, type the url

--CARS
Tabs.carsCommand = ""
Tabs.carsURL = ""

--CHANGE PLATE
Tabs.plateCommand = ""
Tabs.plateURL = ""

--CHANGE NUMBER
Tabs.numberCommand = ""
Tabs.numberURL = ""

--CHARACTER NAME
Tabs.nameCommand = ""
Tabs.nameURL = ""

--MONEY
Tabs.moneyCommand = ""
Tabs.moneyURL = ""

--WEAPONS
Tabs.weaponsCommand = ""
Tabs.weaponsURL = ""

--BATTLEPASS
-- if you have  BIT battlepass, activate this option (you can get it at https://bit.tebex.io)
battlepass = true 


--$$\   $$\  $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\   $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\  $$$$$$\  
--$$$\  $$ |$$  __$$\\__$$  __|\_$$  _|$$  _____|\_$$  _|$$  __$$\ $$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |$$  __$$\ 
--$$$$\ $$ |$$ /  $$ |  $$ |     $$ |  $$ |        $$ |  $$ /  \__|$$ /  $$ |  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |$$ /  \__|
--$$ $$\$$ |$$ |  $$ |  $$ |     $$ |  $$$$$\      $$ |  $$ |      $$$$$$$$ |  $$ |     $$ |  $$ |  $$ |$$ $$\$$ |\$$$$$$\  
--$$ \$$$$ |$$ |  $$ |  $$ |     $$ |  $$  __|     $$ |  $$ |      $$  __$$ |  $$ |     $$ |  $$ |  $$ |$$ \$$$$ | \____$$\ 
--$$ |\$$$ |$$ |  $$ |  $$ |     $$ |  $$ |        $$ |  $$ |  $$\ $$ |  $$ |  $$ |     $$ |  $$ |  $$ |$$ |\$$$ |$$\   $$ |
--$$ | \$$ | $$$$$$  |  $$ |   $$$$$$\ $$ |      $$$$$$\ \$$$$$$  |$$ |  $$ |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |\$$$$$$  |
--\__|  \__| \______/   \__|   \______|\__|      \______| \______/ \__|  \__|  \__|   \______| \______/ \__|  \__| \______/

function notifications(notitype, message, time)
    --Change this trigger for your notification system keeping the variables
    TriggerEvent('codem-notification', message, time, notitype)
end

--Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'

--Notification time:
Noti.time = 5000


--$$\        $$$$$$\  $$\   $$\  $$$$$$\  $$\   $$\  $$$$$$\   $$$$$$\  $$$$$$$$\ 
--$$ |      $$  __$$\ $$$\  $$ |$$  __$$\ $$ |  $$ |$$  __$$\ $$  __$$\ $$  _____|
--$$ |      $$ /  $$ |$$$$\ $$ |$$ /  \__|$$ |  $$ |$$ /  $$ |$$ /  \__|$$ |      
--$$ |      $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ $$ |  $$ |$$$$$$$$ |$$ |$$$$\ $$$$$\    
--$$ |      $$  __$$ |$$ \$$$$ |$$ |\_$$ |$$ |  $$ |$$  __$$ |$$ |\_$$ |$$  __|   
--$$ |      $$ |  $$ |$$ |\$$$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |      
--$$$$$$$$\ $$ |  $$ |$$ | \$$ |\$$$$$$  |\$$$$$$  |$$ |  $$ |\$$$$$$  |$$$$$$$$\ 
--\________|\__|  \__|\__|  \__| \______/  \______/ \__|  \__| \______/ \________|

receivedcar = "You have received a new vehicle!"
waitcar = "You must wait a little while to get another vehicle"
nomoney = "You do not have enough money"
updatedname = "Name has been updated!"
updatednumber = "The phone number has been updated!"
nocar = "No vehicle nearby"
notextplate = "Cant apply empty plate"
notextphone = "Cant apply empty phone number"
notextname = "Cant apply empty name"
dataerror = "Error updating the information, check that the data is correct."
updatedplate = "Plate has been updated!" 
donemoney = "Cash has been correctly delivered"
codegenerated = "The code has been generated correctly"
erroramount = "You must enter a number of coins for the code"
wait = "You must wait a few seconds to do this action again."
codeerror = "The code cannot be empty"
nocorrectcode = "The code entered is not correct, please check it or contact the staff"
correctcode = "The code has been redeemed, you have just received the coins!"
receivedweapon = "You have received a weapon!"
updateerror = "The value entered does not meet the requirements"


--$$$$$$$\  $$$$$$$\  $$$$$$\  $$$$$$\  $$$$$$$$\  $$$$$$\  
--$$  __$$\ $$  __$$\ \_$$  _|$$  __$$\ $$  _____|$$  __$$\ 
--$$ |  $$ |$$ |  $$ |  $$ |  $$ /  \__|$$ |      $$ /  \__|
--$$$$$$$  |$$$$$$$  |  $$ |  $$ |      $$$$$\    \$$$$$$\  
--$$  ____/ $$  __$$<   $$ |  $$ |      $$  __|    \____$$\ 
--$$ |      $$ |  $$ |  $$ |  $$ |  $$\ $$ |      $$\   $$ |
--$$ |      $$ |  $$ |$$$$$$\ \$$$$$$  |$$$$$$$$\ \$$$$$$  |
--\__|      \__|  \__|\______| \______/ \________| \______/

changenameprice = "1000"
changephonenumberprice = "1000"
changeplateprice = "1000"

--$$\      $$\  $$$$$$\  $$\   $$\ $$$$$$$$\ $$\     $$\ 
--$$$\    $$$ |$$  __$$\ $$$\  $$ |$$  _____|\$$\   $$  |
--$$$$\  $$$$ |$$ /  $$ |$$$$\ $$ |$$ |       \$$\ $$  / 
--$$\$$\$$ $$ |$$ |  $$ |$$ $$\$$ |$$$$$\      \$$$$  /  
--$$ \$$$  $$ |$$ |  $$ |$$ \$$$$ |$$  __|      \$$  /   
--$$ |\$  /$$ |$$ |  $$ |$$ |\$$$ |$$ |          $$ |    
--$$ | \_/ $$ | $$$$$$  |$$ | \$$ |$$$$$$$$\     $$ |    
--\__|     \__| \______/ \__|  \__|\________|    \__|

--types: money or blackmoney

Money = {
    [1] = {
        name = "Cash Money",
        type = "money",
        image = "./img/money1.png",
        moneyprice = "1000",
        moneyobtained = "100000"
        },
    [2] = {
        name = "Cash Money",
        type = "money",
        image = "./img/money2.png",
        moneyprice = "2000",
        moneyobtained = "200000"
        },
    [3] = {
        name = "Cash Money",
        type = "money",
        image = "./img/money3.png",
        moneyprice = "3000",
        moneyobtained = "300000"
        },
    [4] = {
        name = "Black Money",
        type = "blackmoney",
        image = "./img/bmoney1.png",
        moneyprice = "1000",
        moneyobtained = "100000"
        },
    [5] = {
        name = "Black Money",
        type = "blackmoney",
        image = "./img/bmoney2.png",
        moneyprice = "2000",
        moneyobtained = "200000"
        },
    [6] = {
        name = "Black Money",
        type = "blackmoney",
        image = "./img/bmoney3.png",
        moneyprice = "3000",
        moneyobtained = "300000"
        },
}

function giveMoney(playerID, selected)

    --    ____  __  _   _
    --   ||    (( \ \\ //
    --   ||==   \\   )X( 
    --   ||___ \_)) // \\

    if Config.Framework == "esx" then
        for k, v in pairs(Money) do
            if k == selected then
                if v.type == "money" then
                    local xPlayer = ESX.GetPlayerFromId(playerID)
                    local result = SqlFunc(Config.Mysql,'fetchAll','SELECT * FROM users WHERE identifier = @identifier', {['@identifier'] = xPlayer.identifier})
                    if result ~= nil then
                        if result[1] ~= nil then
                            local oldcoins = result[1].coins
                            local result2 = SqlFunc(Config.Mysql,'execute','UPDATE users SET coins = @coins WHERE identifier = @identifier', {
                                ['@identifier'] = xPlayer.identifier,
                                ['@coins'] = tonumber(oldcoins) - tonumber(v.moneyprice)
                            })
                            xPlayer.addMoney(tonumber(v.moneyobtained))
                            TriggerClientEvent('esx:showNotification', playerID, donemoney)
                            if Config.webhookmoney ~= "" then
                                sendToDiscord(Config.webhookmoney,"Player: "..GetPlayerName(playerID), "**DELIVERED MONEY**\n\n**Obtained:** "..v.moneyobtained.."\n\n **Identifier: **"..xPlayer.identifier)
                            end        
                        end
                    end   
                elseif v.type == "blackmoney" then
                    local xPlayer = ESX.GetPlayerFromId(playerID)
                    local result = SqlFunc(Config.Mysql,'fetchAll','SELECT * FROM users WHERE identifier = @identifier', {['@identifier'] = xPlayer.identifier})
                    if result ~= nil then
                        if result[1] ~= nil then
                            local oldcoins = result[1].coins
                            local result2 = SqlFunc(Config.Mysql,'execute','UPDATE users SET coins = @coins WHERE identifier = @identifier', {
                                ['@identifier'] = xPlayer.identifier,
                                ['@coins'] = tonumber(oldcoins) - tonumber(v.moneyprice)
                            })
                            xPlayer.addAccountMoney('black_money', tonumber(v.moneyobtained))
                            TriggerClientEvent('esx:showNotification', playerID, donemoney)
                            if Config.webhookmoney ~= "" then
                                sendToDiscord(Config.webhookmoney,"Player: "..GetPlayerName(playerID), "**DELIVERED BLACKMONEY**\n\n**Obtained:** "..v.moneyobtained.."\n\n **Identifier: **"..xPlayer.identifier)
                            end        
                        end
                    end  
                end
            end
        end

    --     ___   ____ 
    --    // \\  || ))
    --   ((   )) ||=) 
    --    \\_/X| ||_))

    elseif Config.Framework == "qb" then
        for k, v in pairs(Money) do
            if k == selected then
                if v.type == "money" then
                    local xPlayer = QBCore.Functions.GetPlayer(playerID)
                    local result = SqlFunc(Config.Mysql,'fetchAll','SELECT * FROM players WHERE citizenid = @citizenid', {['@citizenid'] = xPlayer.PlayerData.citizenid})
                    if result ~= nil then
                        if result[1] ~= nil then
                            local oldcoins = result[1].coins
                            local result2 = SqlFunc(Config.Mysql,'execute','UPDATE players SET coins = @coins WHERE citizenid = @citizenid', {
                                ['@citizenid'] = xPlayer.PlayerData.citizenid,
                                ['@coins'] = tonumber(oldcoins) - tonumber(v.moneyprice)
                            })
                            xPlayer.Functions.AddMoney('cash', tonumber(v.moneyobtained), "")
                            TriggerClientEvent('esx:showNotification', playerID, donemoney)
                            if Config.webhookmoney ~= "" then
                                sendToDiscord(Config.webhookmoney,"Player: "..GetPlayerName(playerID), "**DELIVERED MONEY**\n\n**Obtained:** "..v.moneyobtained.."\n\n **Identifier: **"..xPlayer.PlayerData.citizenid)
                            end        
                        end
                    end   
                elseif v.type == "blackmoney" then
                    local xPlayer = QBCore.Functions.GetPlayer(playerID)
                    local result = SqlFunc(Config.Mysql,'fetchAll','SELECT * FROM players WHERE citizenid = @citizenid', {['@citizenid'] = xPlayer.PlayerData.citizenid})
                    if result ~= nil then
                        if result[1] ~= nil then
                            local oldcoins = result[1].coins
                            local result2 = SqlFunc(Config.Mysql,'execute','UPDATE players SET coins = @coins WHERE citizenid = @citizenid', {
                                ['@citizenid'] = xPlayer.PlayerData.citizenid,
                                ['@coins'] = tonumber(oldcoins) - tonumber(v.moneyprice)
                            })
                            xPlayer.Functions.AddMoney('blackmoney', tonumber(v.moneyobtained), "")
                            TriggerClientEvent('esx:showNotification', playerID, donemoney)
                            if Config.webhookmoney ~= "" then
                                sendToDiscord(Config.webhookmoney,"Player: "..GetPlayerName(playerID), "**DELIVERED BLACKMONEY**\n\n**Obtained:** "..v.moneyobtained.."\n\n **Identifier: **"..xPlayer.PlayerData.citizenid)
                            end        
                        end
                    end
                end
            end
        end
    end
end

--$$$$$$$\  $$\   $$\  $$$$$$\  $$\   $$\ $$$$$$$$\ 
--$$  __$$\ $$ |  $$ |$$  __$$\ $$$\  $$ |$$  _____|
--$$ |  $$ |$$ |  $$ |$$ /  $$ |$$$$\ $$ |$$ |      
--$$$$$$$  |$$$$$$$$ |$$ |  $$ |$$ $$\$$ |$$$$$\    
--$$  ____/ $$  __$$ |$$ |  $$ |$$ \$$$$ |$$  __|   
--$$ |      $$ |  $$ |$$ |  $$ |$$ |\$$$ |$$ |      
--$$ |      $$ |  $$ | $$$$$$  |$$ | \$$ |$$$$$$$$\ 
--\__|      \__|  \__| \______/ \__|  \__|\________|

function changePhone(xPlayer, number)
    if Config.Framework == "esx" then
        SqlFunc(Config.Mysql, 'execute', 'UPDATE users SET phone_number = @phone_number WHERE identifier = @identifier', {
            ['@phone_number'] = number,
            ['@identifier'] = xPlayer.identifier
        })
    elseif Config.Framework == "qb" then
        SqlFunc(Config.Mysql, 'execute', 'UPDATE players SET phone_number = @phone_number WHERE citizenid = @citizenid', {
            ['@phone_number'] = number,
            ['@citizenid'] = xPlayer.PlayerData.citizenid
        })
        --Example for scripts using charinfo:

        --local result = SqlFunc(Config.Mysql,'fetchAll','SELECT charinfo FROM players WHERE citizenid = @citizenid', {['@citizenid'] = xPlayer.PlayerData.citizenid})
        --if result[1] ~= nil then
        --    local charinfo = json.decode(result[1].charinfo)
        --    charinfo.phone = number
        --    SqlFunc(Config.Mysql,'execute','UPDATE players SET charinfo = @charinfo WHERE citizenid = @citizenid', {
        --        ['@citizenid'] = xPlayer.PlayerData.citizenid,
        --        ['@charinfo'] = json.encode(charinfo)
        --    })
        --end
    end
end

--$$$$$$\   $$$$$$\  $$$$$$$\   $$$$$$\  
--$$  __$$\ $$  __$$\ $$  __$$\ $$  __$$\ 
--$$ /  \__|$$ /  $$ |$$ |  $$ |$$ /  \__|
--$$ |      $$$$$$$$ |$$$$$$$  |\$$$$$$\  
--$$ |      $$  __$$ |$$  __$$<  \____$$\ 
--$$ |  $$\ $$ |  $$ |$$ |  $$ |$$\   $$ |
--\$$$$$$  |$$ |  $$ |$$ |  $$ |\$$$$$$  |
 --\______/ \__|  \__|\__|  \__| \______/

Cars = {
    [1] = {
        carprice="1",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [2] = {
        carprice="1",
        carname="Lexus LX",
        carmodel="blista",
        carimage="./img/cars/1.jpg"
    },
    [3] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="blista",
        carimage="./img/cars/1.jpg"
    },
    [4] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [5] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [6] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [7] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [8] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [9] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [10] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [11] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [12] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [13] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [14] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [15] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
    [16] = {
        carprice="150000",
        carname="Lexus LX",
        carmodel="t20",
        carimage="./img/cars/1.jpg"
    },
}


--$$\      $$\ $$$$$$$$\  $$$$$$\  $$$$$$$\   $$$$$$\  $$\   $$\  $$$$$$\  
--$$ | $\  $$ |$$  _____|$$  __$$\ $$  __$$\ $$  __$$\ $$$\  $$ |$$  __$$\ 
--$$ |$$$\ $$ |$$ |      $$ /  $$ |$$ |  $$ |$$ /  $$ |$$$$\ $$ |$$ /  \__|
--$$ $$ $$\$$ |$$$$$\    $$$$$$$$ |$$$$$$$  |$$ |  $$ |$$ $$\$$ |\$$$$$$\  
--$$$$  _$$$$ |$$  __|   $$  __$$ |$$  ____/ $$ |  $$ |$$ \$$$$ | \____$$\ 
--$$$  / \$$$ |$$ |      $$ |  $$ |$$ |      $$ |  $$ |$$ |\$$$ |$$\   $$ |
--$$  /   \$$ |$$$$$$$$\ $$ |  $$ |$$ |       $$$$$$  |$$ | \$$ |\$$$$$$  |
--\__/     \__|\________|\__|  \__|\__|       \______/ \__|  \__| \______/


weapons = {
    [1] = {
        price="150000",
        name="Assault Rifle",
        model="weapon_assaultrifle",
        image="./img/weapons/1.jpg"
    },
    [2] = {
        price="150000",
        name="Shotgun",
        model="weapon_dbshotgun",
        image="./img/weapons/2.jpg"
    },
    [3] = {
        price="150000",
        name="SMG",
        model="weapon_smg",
        image="./img/weapons/3.jpg"
    },
    [4] = {
        price="150000",
        name="Carbine",
        model="weapon_specialcarbine_mk2",
        image="./img/weapons/4.jpg"
    },
    [5] = {
        price="150000",
        name="RPG",
        model="weapon_rpg",
        image="./img/weapons/5.jpg"
    },
    [6] = {
        price="150000",
        name="Revolver MKII",
        model="weapon_revolver_mk2",
        image="./img/weapons/6.jpg"
    },
    [7] = {
        price="150000",
        name="Minigun",
        model="weapon_minigun",
        image="./img/weapons/7.jpg"
    },
    [8] = {
        price="150000",
        name="Sniper",
        model="weapon_sniperrifle",
        image="./img/weapons/8.jpg"
    },
    [9] = {
        price="150000",
        name="Minigun",
        model="weapon_minigun",
        image="./img/weapons/7.jpg"
    },
    [10] = {
        price="150000",
        name="Sniper",
        model="weapon_sniperrifle",
        image="./img/weapons/8.jpg"
    },
    [11] = {
        price="150000",
        name="Minigun",
        model="weapon_minigun",
        image="./img/weapons/7.jpg"
    },
    [12] = {
        price="150000",
        name="Sniper",
        model="weapon_sniperrifle",
        image="./img/weapons/8.jpg"
    },
    [13] = {
        price="150000",
        name="Minigun",
        model="weapon_minigun",
        image="./img/weapons/7.jpg"
    },
    [14] = {
        price="150000",
        name="Sniper",
        model="weapon_sniperrifle",
        image="./img/weapons/8.jpg"
    },
    [15] = {
        price="150000",
        name="Minigun",
        model="weapon_minigun",
        image="./img/weapons/7.jpg"
    },
    [16] = {
        price="150000",
        name="Sniper",
        model="weapon_sniperrifle",
        image="./img/weapons/8.jpg"
    },
    [17] = {
        price="150000",
        name="Minigun",
        model="weapon_minigun",
        image="./img/weapons/7.jpg"
    },
    [18] = {
        price="150000",
        name="Sniper",
        model="weapon_sniperrifle",
        image="./img/weapons/8.jpg"
    },
    [19] = {
        price="150000",
        name="Minigun",
        model="weapon_minigun",
        image="./img/weapons/7.jpg"
    },
    [20] = {
        price="150000",
        name="Sniper",
        model="weapon_sniperrifle",
        image="./img/weapons/8.jpg"
    }
}

Last updated