area_table = {
	["AIRP"] = {
        name = "Los Santos International Airport",
        enabled = true,
        callpercentage = 80,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(70,90),avg=math.random(1,5)},
            ["meth_rocks"]={value=math.random(80,95),avg=math.random(1,5)},
        },
    },
	["ALAMO"] = {
        name = "Alamo Sea",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["ALTA"] = {
        name = "Alta",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["ARMYB"] = {
        name = "Fort Zancudo",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["BANHAMC"] = {
        name = "Banham Canyon Dr",
        enabled = true,
        callpercentage = 45,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["BANNING"] = {
        name = "Banning",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["BEACH"] = {
        name = "Vespucci Beach",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["BHAMCA"] = {
        name = "Banham Canyon",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["BRADP"] = {
        name = "Braddock Pass",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["BRADT"] = {
        name = "Braddock Tunnel",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["BURTON"] = {
        name = "Burton",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["CALAFB"] = {
        name = "Calafia Bridge",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["CANNY"] = {
        name = "Raton Canyon",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["CCREAK"] = {
        name = "Cassidy Creek",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["CHAMH"] = {
        name = "Chamberlain Hills",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["CHIL"] = {
        name = "Vinewood Hills",
        enabled = true,
        callpercentage = 80,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["CHU"] = {
        name = "Chumash",
        enabled = true,
        callpercentage = 45,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["CMSW"] = {
        name = "Chiliad Mountain State Wilderness",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["CYPRE"] = {
        name = "Cypress Flats",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["DAVIS"] = {
        name = "Davis",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["DELBE"] = {
        name = "Del Perro Beach",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["DELPE"] = {
        name = "Del Perro",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["DELSOL"] = {
        name = "La Puerta",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["DESRT"] = {
        name = "Grand Senora Desert",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["DOWNT"] = {
        name = "Downtown",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["DTVINE"] = {
        name = "Downtown Vinewood",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["EAST_V"] = {
        name = "East Vinewood",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["EBURO"] = {
        name = "El Burro Heights",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["ELGORL"] = {
        name = "El Gordo Lighthouse",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["ELYSIAN"] = {
        name = "Elysian Island",
        enabled = true,
        callpercentage = 40,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["GALFISH"] = {
        name = "Galilee",
        enabled = true,
        callpercentage = 20,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["GOLF"] = {
        name = "GWC and Golfing Society",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["GRAPES"] = {
        name = "Grapeseed",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["GREATC"] = {
        name = "Great Chaparral",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["HARMO"] = {
        name = "Harmony",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["HAWICK"] = {
        name = "Hawick",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["HORS"] = {
        name = "Vinewood Racetrack",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["HUMLAB"] = {
        name = "Humane Labs and Research",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["JAIL"] = {
        name = "Bolingbroke Penitentiary",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["KOREAT"] = {
        name = "Little Seoul",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["LACT"] = {
        name = "Land Act Reservoir",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["LAGO"] = {
        name = "Lago Zancudo",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["LDAM"] = {
        name = "Land Act Dam",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["LEGSQU"] = {
        name = "Legion Square",
        enabled = true,
        callpercentage = 75,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["LMESA"] = {
        name = "La Mesa",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["LOSPUER"] = {
        name = "La Puerta",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["MIRR"] = {
        name = "Mirror Park",
        enabled = true,
        callpercentage = 65,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["MORN"] = {
        name = "Morningwood",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["MOVIE"] = {
        name = "Richards Majestic",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["MTCHIL"] = {
        name = "Mount Chiliad",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["MTGORDO"] = {
        name = "Mount Gordo",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["MTJOSE"] = {
        name = "Mount Josiah",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["MURRI"] = {
        name = "Murrieta Heights",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["NCHU"] = {
        name = "North Chumash",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["NOOSE"] = {
        name = "N.O.O.S.E",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["OCEANA"] = {
        name = "Pacific Ocean",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["PALCOV"] = {
        name = "Paleto Cove",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["PALETO"] = {
        name = "Paleto Bay",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["PALFOR"] = {
        name = "Paleto Forest",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["PALHIGH"] = {
        name = "Palomino Highlands",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["PALMPOW"] = {
        name = "Palmer-Taylor Power Station",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["PBLUFF"] = {
        name = "Pacific Bluffs",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["PBOX"] = {
        name = "Pillbox Hill",
        enabled = true,
        callpercentage = 70,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["PROCOB"] = {
        name = "Procopio Beach",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["RANCHO"] = {
        name = "Rancho",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["RGLEN"] = {
        name = "Richman Glen",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["RICHM"] = {
        name = "Richman",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["ROCKF"] = {
        name = "Rockford Hills",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["RTRAK"] = {
        name = "Redwood Lights Track",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["SANAND"] = {
        name = "San Andreas",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["SANCHIA"] = {
        name = "San Chianski Mountain Range",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["SANDY"] = {
        name = "Sandy Shores",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["SKID"] = {
        name = "Mission Row",
        enabled = true,
        callpercentage = 90,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["SLAB"] = {
        name = "Stab City",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["STAD"] = {
        name = "Maze Bank Arena",
        enabled = true,
        callpercentage = 70,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["STRAW"] = {
        name = "Strawberry",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["TATAMO"] = {
        name = "Tataviam Mountains",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["TERMINA"] = {
        name = "Terminal",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["TEXTI"] = {
        name = "Textile City",
        enabled = true,
        callpercentage = 60,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["TONGVAH"] = {
        name = "Tongva Hills",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["TONGVAV"] = {
        name = "Tongva Valley",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["VCANA"] = {
        name = "Vespucci Canals",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["VESP"] = {
        name = "Vespucci",
        enabled = true,
        callpercentage = 70,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(70,90),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(80,100),avg=math.random(1,5)},
        },
    },
	["VINE"] = {
        name = "Vinewood",
        enabled = true,
        callpercentage = 70,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(70,90),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(80,100),avg=math.random(1,5)},
        },
    },
	["WINDF"] = {
        name = "Ron Alternates Wind Farm",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(80,100),avg=math.random(1,5)},
        },
    },
	["WVINE"] = {
        name = "West Vinewood",
        enabled = true,
        callpercentage = 70,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(70,90),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["ZANCUDO"] = {
        name = "Zancudo River",
        enabled = false,
        premium = false,
        incity = false,
        drugs = {},
    },
	["ZP_ORT"] = {
        name = "Port of South Los Santos",
        enabled = true,
        callpercentage = 50,
        sellpercentage = 50,
        premium = false,
        incity = true,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
	["ZQ_UAR"] = {
        name = "Davis Quartz",
        enabled = true,
        callpercentage = 55,
        sellpercentage = 50,
        premium = false,
        incity = false,
        drugs = {
            ["joint"]={value=math.random(80,100),avg=math.random(1,7)},
            ["meth_rocks"]={value=math.random(90,110),avg=math.random(1,5)},
        },
    },
}

RegisterNetEvent('fsn_criminalmisc:drugs:streetselling:request')
AddEventHandler('fsn_criminalmisc:drugs:streetselling:request', function()
	TriggerClientEvent('fsn_criminalmisc:drugs:streetselling:send', source, area_table)
end)

local areanum = 0
for k,v in pairs(area_table) do
	areanum = areanum + 1
end
print('there are '..areanum..' areas')
function GetKey(num)
	local i = 0
	for k,v in pairs(area_table) do
		i = i + 1
		if i == num then
			--print(num..' key == '..k)
			return k
		end
	end
end
Citizen.CreateThread(function()
	for k, v in pairs(area_table) do
		if v.premium == true then
			v.premium = false
		end 
	end
	local rand = 0
	-- stop disabled areas getting premium
	repeat
		rand = math.random(1, areanum)
	until area_table[GetKey(rand)].enabled
	
	area_table[GetKey(rand)].premium = true
	print(area_table[GetKey(rand)].name..' ('..GetKey(rand)..') is now the premium drug area')
	while true do
		Citizen.Wait(1800000)
		for k, v in pairs(area_table) do
			if v.premium == true then
				v.premium = false
			end 
		end
		local rand = 0
		repeat
			rand = math.random(1, areanum)
		until area_table[GetKey(rand)].enabled
		
		area_table[GetKey(rand)].premium = true
		print(area_table[GetKey(rand)].name..' is now the premium drug area')
		
		TriggerClientEvent('fsn_criminalmisc:drugs:streetselling:send', -1, area_table)
	end
end)

--- radio shit
local radio = true
RegisterServerEvent('fsn_criminalmisc:drugs:streetselling:radio')
AddEventHandler('fsn_criminalmisc:drugs:streetselling:radio', function()
	if radio then
		TriggerClientEvent('fsn_inventory:item:add', source, 'radio_receiver', 1)
		TriggerClientEvent('fsn_notify:displayNotification', source, 'You successfully dismantled the radio component', 'centerRight', 6000, 'success')
		radio = false
	else	
		TriggerClientEvent('fsn_notify:displayNotification', source, 'You failed to seperate the right component', 'centerRight', 6000, 'error')
	end
end)
