core = exports.oCore 
font = exports.oFont
infobox = exports.oInfobox
color, r, g, b = core:getServerColor()

garagesInteriorMarkerPos = {215.87013244629,14.437628746033,2.57080078125}

openTime, closeTime = 6, 24 -- Ha mindenféleképpen szeretnéd szerkeszteni a nyitvatartást akkor csak itt!!!

emptyGaragePrice = 12500 -- ennyi pénzt mindig visszakap a raktár eladásakor

carCreatePositions = {
    {193.26615905762,-9,1.578125},
    {189.73530578613,-9,1.578125},
    {186.65881347656,-9,1.578125},
    {183.18374633789,-9,1.578125},
    {179.5365447998,-9,1.578125},
    {176.46936035156,-9,1.578125},
    {172.84587097168,-9,1.578125},
    {169.6047668457,-9,1.578125},
    {166.27624511719,-9,1.578125},
}

objectNames = {
    [1299] = "Dobozok",
    [1221] = "Papírdoboz",
    [2912] = "Doboz",
    [1685] = "Raklap",
    [3013] = "Tölténytároló",
    [3632] = "Hordó",
    [1650] = "Üzemanyag kanna",

    -- bútorok/egyéb
    [2063] = "Fém polc",
    [1812] = "Összecsukható ágy",
    [1208] = "Mosógép",
    [14532] = "Állvány és TV",
    [2630] = "Szobabicikli",
    [1793] = "Matrac",
    [2738] = "WC",
    [2822] = "Tányér készlet",
    [2000] = "Irattartó szekrény",
    [2500] = "Sprunk automata",
    [2620] = "Újság állvány",
    [2621] = "Újság állvány",
    [2622] = "Újság állvány",
    [2941] = "Pénztárgép",
    [1736] = "Szarvas trófea",
    [1328] = "Kuka",
    [2836] = "Szőnyeg",
    [2835] = "Antik szőnyeg",
    [2834] = "Szőnyeg",
    [1728] = "Régi Kanapé",
    [1726] = "Fekete bőrkanapé",
    [1729] = "Régi fotel",
}

itemPrices = {
    [2063] = 1540,
    [1812] = 1120,
    [1208] = 1400,
    [14532] = 4200,
    [2630] = 2380,
    [1793] = 700,
    [2738] = 1470,
    [2822] = 2800,
    [2000] = 1300,
    [2500] = 12600,
    [2620] = 8400,
    [2621] = 7000,
    [2622] = 9800,
    [2941] = 9100,
    [1736] = 14000,
    [2836] = 1260,
    [2835] = 1960,
    [2834] = 900,
    [1728] = 1260,
    [1726] = 9940,
    [1729] = 1050,
}

adjustZPositions = {
    [2941] = -0.7,
    [2620] = -0.1,
    [2621] = -0.1,
    [2622] = -0.1,
    [2500] = -0.95,
    [2836] = -1,
    [2835] = -1,
    [2834] = -1,
    [1328] = -0.5,
}

objectLoots = {
    [1299] = { -- dobozok 
        -- item, esély, db
        itemrange = 4,
        {0, 5, 0},
        {185, 3, 1},
        {186, 2, 1},
        {187, 3, 1},
        {188, 4, 1},
        {202, 4, {1, 5}},
        {203, 2, {1, 3}},
        {201, 4, {3, 6}},
        {211, 1, 1},
        {76, 4, {1, 2}},
        {81, 4, 1},

        {230, 3, 1},
        {231, 3, 1},
        {232, 3, 1},
        {233, 3, 1},

        {142, 2, 1},
        {143, 1, 1},
        {195, 2, 1},
    }, 

    [1221] = { -- papírdoboz
        -- item, esély, db
        itemrange = 2,
        {0, 5, 0},
        {185, 3, 1},
        {186, 2, 1},
        {187, 3, 1},
        {188, 4, 1},
        {76, 4, {1, 2}},
        {81, 4, 1},
        {86, 3, {1, 8}},
        {88, 3, {1, 8}},

        {167, 3, {1, 2}},
        {168, 3, {1, 2}},

        {96, 2, {2, 5}},
        {97, 2, {2, 5}},
        {98, 2, {2, 5}},
        {95, 2, {2, 5}},
        
        {50, 3, {15, 35}},

        {230, 2, 1},
        {231, 2, 1},
        {232, 2, 1},
        {233, 2, 1},

    }, 

    [1685] = { -- raklap
        -- item, esély, db
        itemrange = 1,
        {201, 4, {8, 15}},
        {202, 4, {8, 15}},
        {203, 4, {8, 15}},
        {193, 4, {8, 15}},
        {147, 4, {20, 30}},
        {148, 3, {15, 24}},
        {19, 4, {10, 30}},
        {20, 4, {10, 30}},
        {21, 4, {10, 30}},
        {22, 4, {10, 30}},
        {23, 4, {10, 30}},
        {14, 4, {10, 30}},
        {15, 4, {10, 30}},
        {87, 2, {5, 15}},
        {88, 3, {5, 15}},
        {86, 3, {5, 15}},
        {112, 3, {4, 10}},
        {113, 3, {4, 10}},
        {114, 3, {4, 10}},
        {150, 4, {5, 12}},

        {95, 3, {4, 10}},
        {96, 3, {4, 10}},
        {97, 3, {4, 10}},
        {98, 3, {4, 10}},

        {103, 3, {7, 15}},

        {230, 3, {2, 4}},
        {231, 3, {2, 4}},
        {232, 3, {2, 4}},
        {233, 3, {2, 4}},

        {96, 3, {5, 10}},
        {97, 3, {5, 10}},
        {98, 3, {5, 10}},
        {95, 3, {5, 10}},

        {50, 3, {40, 80}},
    },

    [2912] = { -- doboz
        -- item, esély, db
        itemrange = 2,
        {0, 5, 0},
        {202, 4, {1, 5}},
        {203, 2, {1, 3}},
        {201, 4, {3, 6}},
        {185, 5, 1},
        {186, 5, 1},
        {187, 5, 1},
        {188, 2, 1},
        {195, 4, 1},
        {196, 4, 1},
        {197, 4, 1},
        {198, 4, 1},
        {142, 4, 1},
        {143, 4, 1},

        {230, 2, 1},
        {231, 2, 1},
        {232, 2, 1},
        {233, 2, 1},
    }, 

    
    [3013] = { -- tölténytároló
        -- item, esély, db
        itemrange = 1,
        {0, 5, 0},
        {45, 3, {5, 10}},
        {46, 4, {2, 8}},
        {47, 4, {8, 16}},
        {48, 4, {8, 16}},
        {49, 1, {1, 4}},
    }, 

    [1328] = { -- kuka
        -- item, esély, db
        itemrange = 3,
        {0, 4, 0},
        {187, 2, 1},
        {193, 3, {2, 4}},
        {194, 3, {1, 5}},
        {136, 3, {1, 3}},
        {138, 3, {1, 2}},
    }, 

    [3632] = { -- hordó
        -- item, esély, db
        itemrange = 2,
        {0, 4, 0},
        {136, 4, {1, 4}},
        {202, 3, {2, 4}},
        {193, 4, {4, 8}},
        {194, 4, {4, 8}},

        {96, 3, {5, 10}},
        {97, 3, {5, 10}},
        {98, 3, {5, 10}},
        {95, 3, {5, 10}},
    }, 

    [1650] = { -- üzemanyag kanna
        -- item, esély, db
        itemrange = 1,
        {183, 1, 1},
        {184, 1, 1},
    }, 
}

outTime = 25000

licitNums = {}
numbersToFill = {
    {250, 10, 1},
    {500, 8, 2},
    {1000, 4, 3},
    {2000, 2, 4},
    {4000, 1, 5},
}

for k, v in ipairs(numbersToFill) do 
    for i = 1, v[2] do 
        table.insert(licitNums, v[1])
    end
end

generatePositions = { -- HA JÁRMŰ KERÜL A RAKTÁRBA AKKOR MÁS OBJECTET NE RAKJATOK BELE MERT ÖSSZEBUGOL A RENDSZER
    -- HA OBJECT IDNEK {}-t ADSZ AKKOR A BELE ÍRT ELEMEKBŐL RANDOM VÁLASZT KI EGYET, HA 0-at ADSZ MEG AKKOR AZ NEM LESZ LÉTREHOZVA
    -- CSAK OLYAN HELYRE TEGYÉL RANDOM OBJECTET AMI ALAPBÓL NEM LÁTSZIK (A RAKTÁR BEMUTATÁSA ÉS A TÉNYLEGES RAKTÁR A RANDOM OBJECTEKBEN NEM EGYEZIK MEG!!!)
    
    {
        -- BEÁLLÍTVA
        chance = 22, -- chance: n >= 1 minél nagyobb annál nagyobb az esély 
        priceRange = {12000, 20000}, -- min, max 
        {1299, 165.0397857666,231.40210266113,67.297813415527},
        {1221, 165.87774658203,233.89868164062,67.197813415527, 0, 0, 50},
        {1221, 165.87774658203,233.89868164062,68.11, 0, 0, -60},
        {1221, 165.87774658203,233.89868164062,69.02, 0, 0, 120},
        {2912, 161.87774658203,231.89868164062,66.8, 0, 0, 120},
        {2912, 160.87815856934, 231.5465698242,66.8, 0, 0, 10},
        {2912, 164.43334960938, 234.03401184082,66.8, 0, 0, 10},
        {2063, 161.63442993164,234.3,67.597813415527, 0, 0, 0},
        {2912, 161.03442993164,234.3,68.385, 0, 0, 0},
        {1650, 163.91690063477, 231.42663574219, 67.097813415527, 0, 0, 100},
    },

    
    {
        -- BEÁLLÍTVA
        chance = 21, -- chance: n >= 1 minél nagyobb annál nagyobb az esély 
        priceRange = {12200, 22000}, -- min, max
        {1685, 165.5, 232, 67.497813415527, 0, 0, 90},
        {1685, 165.5, 232, 69, 0, 0, 90},
        {1736, 160.47611999512, 233.76177978516, 68.9, 0, 0, 90},

        {1221, 165.59359741211,233.74768066406,67.197813415527, 0, 0, 30},
        {1221, 165.59359741211,233.74768066406,68.097813415527, 0, 0, 20},

        {{1728, 1726, 1729, 0},163.19862365723,233.78086853027,66.77813415527, 0, 0, 180},
        {{2836, 2834, 2835, 1328, 0}, 161.49085998535,231.25494384766,67.797813415527, 0, 0, 20},
    },

    {
        --BEÁLLÍTVA
        chance = 18, -- chance: n >= 1 minél nagyobb annál nagyobb az esély 
        priceRange = {19000, 26000}, -- min, max
        {1812, 162.7,234.2, 66.79, 0, 0, -270},
        {1221, 161.03442993164,234.3,67.7, 0, 0, 0},
        {1221, 161.03442993164,234.3,68.6, 0, 0, 0},
        {1208, 163.48023986816,234.2502746582, 66.79, 0, 0, -180},
        {14532, 165.56230163574,231.30989074707,67.797813415527, 0, 0, -180},
        {1685, 164.00833129883, 232, 67.497813415527, 0, 0, -180},
        {3013, 162.45861816406,231.82696533203,66.95, 0, 0, 36},
        {3632, 160.64677429199,231.32640075684,67.28, 0, 0, 36},
        {3632, 160.64677429199,231.32640075684,68.24, 0, 0, 122},
        {3632, 160.84677429199,232.12640075684,67.28, 0, 0, 200},
        {2630, 162.14924621582,233.04022216797,66.8, 0, 0, 103},
        {1221, 165.87774658203,233.89868164062,67.197813415527, 0, 0, 50},
    },

    {
        -- BEÁLLÍTVA
        chance = 15, -- chance: n >= 1 minél nagyobb annál nagyobb az esély 
        priceRange = {19000, 27000}, -- min, max
        {1685, 165.5, 232, 67.497813415527, 0, 0, 90},
        {1685, 165.5, 232, 69, 0, 0, 90},
        {1685, 163.5, 232, 67.497813415527, 0, 0, 0},
        {1685, 163.5, 232, 69, 0, 0, 0},
        {1685, 161.5, 232, 67.497813415527, 0, 0, 90},
        {1685, 161.5, 232, 69, 0, 0, 90},
        {1685, 165.5, 233.8, 67.497813415527, 0, 0, 0},
        {1685, 165.5, 233.8, 69, 0, 0, 0},

        {{2941, 2620, 2621, 2622}, 161.48377990723,233.70468139648,67.797813415527, 0, 0, 67},
        {{2621, 2622, 2500}, 162.4225769043,233.9256439209,67.797813415527, 0, 0, 20},
    },

    { -- Alap4: 32.000 - 47.000
        -- BEÁLLÍTVA
        chance = 10, -- chance: n >= 1 minél nagyobb annál nagyobb az esély 
        priceRange = {32000, 47000}, -- min, max
        {1685, 165.5, 232, 67.497813415527, 0, 0, 90},
        {1685, 165.5, 232, 69, 0, 0, 90},
        {1685, 163.5, 233.8, 67.497813415527, 0, 0, 0},
        {1685, 163.5, 233.8, 69, 0, 0, 0},
        {1685, 161.5, 233.8, 67.497813415527, 0, 0, 90},
        {1685, 161.5, 233.8, 69, 0, 0, 90},
        {1685, 165.5, 233.8, 67.497813415527, 0, 0, 0},
        {1685, 165.5, 233.8, 69, 0, 0, 0},

        {1793, 163.9,231,68.18, 0, 75, 90},

        {2738, 161.03593444824,232.48645019531,67.4, 0, 0, 84},
        {2822, 161.13593444824,232.48645019531,67.42, 0, 0, -108},
        {2000, 162.13593444824,232.28645019531,66.8, 0, 0, 30},

        {3632, 163.66720581055, 232.26300048828,67.28, 0, 0, 36},
        {3632, 163.66720581055, 232.26300048828,68.24, 0, 0, 122},
    },

    { -- RITKA KOCSI! RITKAAAAA (NAGYON)
        -- BEÁLLÍTVA
        chance = 1, -- chance: n >= 1 minél nagyobb annál nagyobb az esély 
        priceRange = {35000, 53000}, -- min, max
        {604, 163.1725769043,232.8,67.497813415527, 0, 0, -90, true, 1}
    },
}

vehicleColors = {
    {42, 119, 161},
    {215, 142, 16},
    {39, 47, 75},
    {145, 115, 71},
    {115, 14, 26},
    {155, 159, 157},
    {30, 46, 50},
    {236, 106, 174},
    {51, 95, 63},
    {170, 173, 142},
    {52, 26, 30},
    {115, 46, 62},
    {189, 190, 198},
}

carColPositions = {
    -- x, y, z, w1, w2
    {215.89584350586,-3.1972954273224,1.65, 6.8, 5.8},
    {215.88043212891,5.1979298591614,1.65, 6.8, 5.8},
    {215.63577270508,30.099473953247,1.65, 6.8, 5.8},
}

allowedVehiclesForTransport = {
    [498] = true,
}

furnitureDepo = {
    col = {1083.0871582031,-1211.7908935547,16.5, 8, 10, 5},
    ped = {1088.9156494141,-1212.8806152344,17.1, 354},
}