Config = {}

Config.PawnLocation = {
    [1] = {
            coords = vector3(2580.66, 464.93, 108.63),
            length = 1.5,
            width = 1.8,
            heading = 207.0,
            debugPoly = false,
            minZ = 107.63,
            maxZ = 110.63,
            distance = 3.0
        },
    }

Config.BankMoney = false -- Set to true if you want the money to go into the players bank
Config.UseTimes = false -- Set to false if you want the pawnshop open 24/7
Config.TimeOpen = 7 -- Opening Time
Config.TimeClosed = 17 -- Closing Time
Config.SendMeltingEmail = true

Config.UseTarget = GetConvar('UseTarget', 'false') == 'true'

Config.PawnItems = {
    [1] = {
        item = 'goldchain',
        price = math.random(50,100)
    },
    [2] = {
        item = 'diamond_ring',
        price = math.random(50,100)
    },
    [3] = {
        item = 'rolex',
        price = math.random(50,100)
    },
    [4] = {
        item = 'tenkgoldchain',
        price = math.random(50,100)
    },
    [5] = {
        item = 'tablet',
        price = math.random(50,100)
    },
    [6] = {
        item = 'iphone',
        price = math.random(50,100)
    },
    [7] = {
        item = 'samsungphone',
        price = math.random(50,100)
    },
    [8] = {
        item = 'laptop',
        price = math.random(50,100)
    },
    [9] = {
        item = 'metalscrap',
        price = math.random(1, 4)
    },
    [10] = {
        item = 'plastic',
        price = math.random(1, 4)
    },
    [11] = {
        item = 'copper',
        price = math.random(1, 4)
    },
    [12] = {
        item = 'iron',
        price = math.random(1, 4)
    },
    [13] = {
        item = 'aluminum',
        price = math.random(1, 4)
    },
    [14] = {
        item = 'steel',
        price = math.random(1, 4)
    },
    [15] = {
        item = 'glass',
        price = math.random(1, 4)
    },
    [16] = {
        item = 'apple',
        price = math.random(1, 4)
    },
    [17] = {
        item = 'apple_juice',
        price = math.random(5, 15)
    },
    [18] = {
        item = 'milkbucket',
        price = math.random(5, 15)
    },
    [19] = {
        item = 'raw_beef',
        price = math.random(5, 15)
    },
    [20] = {
        item = 'beef',
        price = math.random(5, 15)
    },
    [21] = {
        item = 'milk',
        price = math.random(5, 15)
    },
    [22] = {
        item = 'rawpumpkin',
        price = math.random(5, 15)
    },
    [23] = {
        item = 'pumpkinpiebox',
        price = math.random(5, 15)
    },
    [24] = {
        item = 'slicedpie',
        price = math.random(5, 15)
    },
    [25] = {
        item = 'corncob',
        price = math.random(5, 15)
    },
    [26] = {
        item = 'canofcorn',
        price = math.random(5, 15)
    },
    [27] = {
        item = 'grapes',
        price = math.random(5, 15)
    },
    [28] = {
        item = 'grapejuice',
        price = math.random(5, 15)
    },
    [29] = {
        item = 'greenpepper',
        price = math.random(5, 15)
    },
    [30] = {
        item = 'chillypepper',
        price = math.random(5, 15)
    },
    [31] = {
        item = 'hotsauce',
        price = math.random(5, 15)
    },
    [32] = {
        item = 'tomato',
        price = math.random(5, 15)
    },
    [33] = {
        item = 'tomatopaste',
        price = math.random(5, 15)
    },
    [34] = {
        item = 'raw_bacon',
        price = math.random(5, 15)
    },
    [35] = {
        item = 'raw_sausage',
        price = math.random(5, 15)
    },
    [36] = {
        item = 'raw_pork',
        price = math.random(5, 15)
    },
    [37] = {
        item = 'raw_ham',
        price = math.random(5, 15)
    },
    [38] = {
        item = 'cooked_bacon',
        price = math.random(5, 15)
    },
    [39] = {
        item = 'cooked_sausage',
        price = math.random(5, 15)
    },
    [40] = {
        item = 'cooked_pork',
        price = math.random(5, 15)
    },
    [41] = {
        item = 'cooked_ham',
        price = math.random(5, 15)
    },
    [42] = {
        item = 'pig_leather',
        price = math.random(5, 15)
    },
    [43] = {
        item = 'cow_leather',
        price = math.random(5, 15)
    },
    [44] = {
        item = 'cryptostick',
        price = math.random(5, 15)
    },
}

Config.MeltingItems = { -- meltTime is amount of time in minutes per item
    [1] = {
        item = 'goldchain',
        rewards = {
            [1] = {
                item = 'goldbar',
                amount = 1
            }
        },
        meltTime = 0.30
    },
    [2] = {
        item = 'diamond_ring',
        rewards = {
            [1] = {
                item = 'diamond',
                amount = 1
            },
            [2] = {
                item = 'goldbar',
                amount = 1
            }
        },
        meltTime = 0.15
    },
    [3] = {
        item = 'rolex',
        rewards = {
            [1] = {
                item = 'diamond',
                amount = 1
            },
            [2] = {
                item = 'goldbar',
                amount = 1
            },
            [3] = {
                item = 'electronickit',
                amount = 1
            }
        },
        meltTime = 0.15
    },
    [4] = {
        item = 'tenkgoldchain',
        rewards = {
            [1] = {
                item = 'diamond',
                amount = 1
            },
            [2] = {
                item = 'goldbar',
                amount = 1
            }
        },
        meltTime = 0.15
    },
}
