core = exports.oCore
color, r, g, b = core:getServerColor()
mysql = exports.oMysql
inventory = exports.oInventory
font = exports.oFont
infobox = exports.oInfobox
chat = exports.oChat

itemPrices = {
    [2] = 4,
    [3] = 7,
    [4] = 10,
    [5] = 6,
    [6] = 6,
    [7] = 15,
    [8] = 5,
    [9] = 6,
    [10] = 5,
    [11] = 5,
    [12] = 5,
    [13] = 7,
    [14] = 1,
    [15] = 2,
    [16] = 20,
    [17] = 15,
    [18] = 16,

    [19] = 5,
    [20] = 5,
    [21] = 6,
    [22] = 4,
    [23] = 6,
    [24] = 13,
    [25] = 30,
    [26] = 8,
    [31] = 3000,
    [36] = 3500,
    [71] = 30,
    [72] = 30, 
    [50] = 20,
    [73] = 2000,
    [74] = 1000,
    [80] = 200,

    [150] = 75,
    [76] = 250,
    [81] = 400,
    [152] = 1500,
    [154] = 350,

    [147] = 15,
    [148] = 150,

    [86] = 175,
    [87] = 65,
    [88] = 73,

    [1] = 750,

    [179] = 7,
    [180] = 12,
    [181] = 5,
    [72] = 22,

    --[172] = 450,
    --[171] = 750,

    [183] = 2000,
    [184] = 1800,

    [112] = 65,
    [113] = 120,
    [114] = 80,

    [163] = 2500,
    [164] = 1250,
    [141] = 200,

    [92] = 1500,
    [93] = 500,
    [95] = 300,
    [96] = 310,
    [97] = 330,
    [98] = 400,
    
    [103] = 50,
    [80] = 900,
    [102] = 800,
    [105] = 1000,

    [243] = 1500,
    [244] = 1500,
    [245] = 1500,
    [246] = 1500,
    [247] = 5000,
    [204] = 50,

    [223] = 500,
    [84] = 1000,
    [182] = 500,

    [236] = 4000,
    [237] = 4000,

    [222] = 250,

    [67] = 500,
    [50] = 5,
    [36] = 1500,

    -- new alcohols
    [212] = 350,
    [213] = 300,
    [214] = 570,
    [215] = 220,
    [216] = 200,
}

itemDefValue = {
    [183] = 10,
    [184] = 10,
    [112] = 12,
    [113] = 12,
    [114] = 12,
    [163] = 100,
    [164] = 100,
    [103] = 100,
    [104] = 100,
    [67] = 100, 
    [223] = 0,
}

shopItems = {
    {name = "Étel", icon = "food", items = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}},
    {name = "Ital", icon = "drink", items = {19, 20, 21, 22, 23, 24, 25, 26, 212, 213, 214, 215, 216}},
    {name = "Hobby", icon = "hobby", items = {31, 74, 86, 87, 88, 147, 148, 179, 180, 181, 72, 163, 164, 141,103,102,105,80,223,84,182,236,237,222,67,50,36}},
    {name = "Gyógyszer", icon = "doctor", items = {76, 150, 81}},
    {name = "Cigaretta", icon = "smoke", items = {112, 113, 114}},
    {name = "Elektronika", icon = "phone", items = {73, 1, 154}},
    {name = "Benzinkút", icon = "fuel", items = {183, 184}},
    {name = "Állatbolt", icon = "hobby", items = {92, 93, 95, 96, 97, 98}},
    {name = "Tűzijátékbolt", icon = "hobby", items = {243,244,245,246,247}}, 
}

shopTemplates = {
    {name = "Élelmiszer", items = {2, 3, 4, 5, 6, 7, 14, 15, 16, 17, 18}},
    {name = "Ital", items = {19, 20, 21, 22, 23, 24, 25, 26, 212, 213, 214, 215, 216}},
    {name = "Vegyesbolt", items = {2, 3, 4, 5, 6, 7, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 76, 150, 81, 179, 180, 181, 112, 113, 114, 141, 212, 213, 214, 215, 216}},
    {name = "Hobby bolt", items = {31, 74, 86, 87, 88, 147, 148, 179, 180, 181, 72, 163, 164, 141,103,102,105,80,223,84,182 ,236,237,222,67,50,36}},
    {name = "Elektronikai bolt", items = {73, 1, 154}},
    {name = "Gyógyszertár", items = {76, 150}},
    {name = "Benzinkút", items = {183, 184}},
    {name = "Állatbolt", items = {92, 93, 95, 96, 97, 98}},
    {name = "Tűzijátékbolt", items = {243,244,245,246,247}},
}

businessBuyableItems = {}

for k, v in pairs(itemPrices) do 
    table.insert(businessBuyableItems, {k, math.min(math.floor(v*0.7), 1), math.floor(v*1.3)})
end

pickupOrderPos = {-18.532320022583,-277.89138793945,5.4296875}

boxAttachPosiitons = {
    {-0.35, -1.1, -0.1},
    {0.35, -1.1, -0.1},
    {-0.35, -1.9, -0.1},
    {0.35, -1.9, -0.1},
}