= { { { { "nothing to see here" } } } } function () return "nope" end () --Server start requirements --serverslots --gamemodename -- getResourceRootElement(getThisResource()) function checkResourceRequirements ( res ) = { { { { "nothing to see here" } } } } function () return "nope" end () if getResourceName(getThisResource()) ~= "DayZ" then reason = "Name of resource does not match (DayZ)!" end if reason ~= false then outputServerLog ( "Resource " .. getResourceName(res) .. " wasn't started: ("..tostring(reason)..")." ) outputChatBox ( "Resource " .. getResourceName(res) .. " wasn't started: ("..tostring(reason)..").", getRootElement(), 255, 255, 255 ) outputConsole ( "Resource " .. getResourceName(res) .. " wasn't started: ("..tostring(reason)..")." ) outputDebugString ( "Resource " .. getResourceName(res) .. " wasn't started: ("..tostring(reason)..")." ) cancelEvent() end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), checkResourceRequirements ) local itemTable = { ---------------------- ["farm"] = { {"Wood Pile",1463,0.4,0,13}, {"Bandage",1578,0.5,0,4}, {"Water Bottle",2683,1,0,6}, {"Pasta Can",2770,1,0,6}, {"Beans Can",2601,1,0,6}, {"Burger",2768,1,0,6}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Soda Bottle",2647,1,0,9}, {"Empty Gas Canister",1650,1,0,10}, {"Hunting Knife",335,1,90,4}, {"Box of Matches",328,0.4,90,8}, {"Desert Eagle",348,1,90,0.2}, {"Morphine",1579,1,0,4}, {"Tent",1279,1,0,0.5}, {"M1911",346,1,90,4}, {"Painkiller",2709,3,0,3.5}, {"Lee Enfield",357,1,90,0.3}, {"Winchester 1866",349,1,90,0.3}, {"Tire",1073,1,0,2}, {"Tank Parts",1008,1,0.8,2}, {"Civilian Clothing",1241,2,0,2.5}, {"Map",1277,0.8,90,6}, {"GPS",2976,0.15,0,2}, }, ---------------------- ["residential"] = { {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,1.5}, {"M9 SD",347,1,90,1.9}, {"Winchester 1866",349,1,90,0.1}, {"PDW",352,1,90,1}, {"Hunting Knife",335,1,90,3}, {"Hatchet",339,1,90,1}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,9}, {"Roadflare",324,1,90,9}, {"Milk",2856,1,0,7}, {"Assault Pack (ACU)",3026,1,0,6}, {"Painkiller",2709,3,0,7}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Grenade",342,1,0,0.01}, {"Desert Eagle",348,1,90,0.4}, {"Sawn-Off Shotgun",350,1,90,0.3}, {"SPAZ-12 Combat Shotgun",351,1,90,0.4}, {"MP5A5",353,1,90,0.4}, {"Watch",2710,1,0,3}, {"Heat Pack",1576,5,0,6}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,0.3}, {"Alice Pack",1248,1,0,1.5}, {"Tire",1073,1,0,1}, {"Tank Parts",1008,0.8,0,1}, {"Morphine",1579,1,0,2}, {"Civilian Clothing",1241,2,0,9}, {"Map",1277,0.8,90,10}, {"GPS",2976,0.15,0,3}, {"Pasta Can",2770,1,0,7}, {"Beans Can",2601,1,0,7}, --{"TEC-9",372,1,90,0}, {"Burger",2768,1,0,7}, {"Golf Club",333,1,90,3}, {"Baseball Bat",336,1,90,3}, {"Shovel",337,1,90,3}, }, ---------------------- ["military"] = { {"Box of Matches",328,0.4,90,2}, {"M1911",346,1,90,5}, {"M9 SD",347,1,90,4}, {"Winchester 1866",349,1,90,3}, {"PDW",352,1,90,4}, {"Hunting Knife",335,1,90,2.4}, {"Hatchet",339,1,90,2.1}, {"Pizza",1582,1,0,2}, {"Soda Bottle",2647,1,0,2}, {"Empty Gas Canister",1650,1,0,4}, {"Roadflare",324,1,90,4}, {"Milk",2856,1,0,1}, {"Painkiller",2709,3,0,4}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Grenade",342,1,0,0.5}, {"Sawn-Off Shotgun",350,1,90,2.3}, {"SPAZ-12 Combat Shotgun",351,1,90,2.3}, {"MP5A5",353,1,90,2.8}, {"Watch",2710,1,0,4}, {"Heat Pack",1576,5,0,3}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,3.5}, {"Alice Pack",1248,1,0,4}, {"Night Vision Goggles",368,1,90,4}, {"Binoculars",369,1,0,4}, {"Tire",1073,1,0,2}, {"Tank Parts",1008,0.8,0,2}, {"Morphine",1579,1,0,4}, {"Camouflage Clothing",1247,2,0,4.5}, {"Civilian Clothing",1241,2,0,3}, --{"TEC-9",372,1,90,3}, {"AK-47",355,1,90,3.8}, {"GPS",2976,0.15,0,3}, {"Map",1277,0.8,90,7}, {"Toolbox",2969,0.5,0,1}, {"Engine",929,0.3,0,2}, {"Tent",1279,1,0,4.5}, {"Ghillie Suit",1213,2,0,0.3}, {"M4",356,1,90,2.4}, {"CZ 550",358,1,90,0.4}, {"Infrared Goggles",369,1,90,3}, {"Assault Pack (ACU)",3026,1,0,5}, {"Czech Backpack",1239,1,0,2}, {"Radio Device",330,1,0,6}, {"Coyote Backpack",1252,1,0,0.9}, {"Shovel",337,1,90,1}, }, ---------------------- ["industrial"] = { {"Wire Fence",933,0.25,0,7}, {"Toolbox",2969,0.5,0,3}, {"Tire",1073,1,0,4}, {"Engine",929,0.3,0,3.5}, {"Tank Parts",1008,1,0.8,4}, {"Winchester 1866",349,1,90,3}, {"Water Bottle",2683,1,0,4}, {"Pasta Can",2770,1,0,4}, {"Beans Can",2601,1,0,4}, {"Burger",2768,1,0,4}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,10}, {"Soda Bottle",2647,1,0,4}, {"Empty Gas Canister",1650,1,0,6}, {"Full Gas Canister",1650,1,0,1.5}, {"Map",1277,0.8,90,3}, {"Watch",2710,1,0,2}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,2}, {"M1911",346,1,90,1.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,2}, {"Hatchet",339,1,90,1.5}, {"Pizza",1582,1,0,4}, {"Roadflare",324,1,90,5}, {"Milk",2856,1,0,4}, {"Assault Pack (ACU)",3026,1,0,6}, {"Coyote Backpack",1252,1,0,0.5}, {"Radio Device",330,1,0,6}, {"Golf Club",333,1,90,1.5}, {"Baseball Bat",336,1,90,1.5}, {"Shovel",337,1,90,1.5}, {"Night Vision Goggles",368,1,90,1.5}, }, ---------------------- ["supermarket"] = { {"Raw Meat",2804,0.5,90,8}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,3.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,3}, {"Hatchet",339,1,90,2.1}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,5}, {"Roadflare",324,1,90,6}, {"Milk",2856,1,0,7}, {"Assault Pack (ACU)",3026,1,0,6}, {"Pasta Can",2770,1,0,7}, {"Beans Can",2601,1,0,7}, {"Burger",2768,1,0,7}, {"Painkiller",2709,3,0,7}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"MP5A5",353,1,90,0.5}, {"Watch",2710,1,0,3}, {"Heat Pack",1576,5,0,6}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,0.2}, {"Alice Pack",1248,1,0,0.5}, {"Tire",1073,1,0,1}, {"Tank Parts",1008,1,0.8,2}, {"Morphine",1579,1,0,2}, {"Civilian Clothing",1241,2,0,3.5}, {"Map",1277,0.8,90,4}, {"GPS",2976,0.15,0,1}, {"Radio Device",330,1,0,6}, {"Golf Club",333,1,90,1.9}, {"Baseball Bat",336,1,90,1.4}, {"Shovel",337,1,90,0.3}, }, ["other"] = { {"Raw Meat",2804,0.5,90}, {"Cooked Meat",2806,0.5,90}, {"Full Gas Canister",1650,1,0}, {"Empty Water Bottle",2683,1,0}, {"Survivor Clothing",1577,2,0}, {"Night Vision Goggles",368,1,90}, {"Infrared Goggles",369,1,90}, {"1866 Slug",2358,2,0}, {"2Rnd. Slug",2358,2,0}, {"SPAZ-12 Pellet",2358,2,0}, {"MP5A5 Mag",2358,2,0}, {"AK Mag",1271,2,0}, {"M4 Mag",1271,2,0}, {"M1911 Mag",3013,2,0}, {"M9 SD Mag",3013,2,0}, {"Desert Eagle Mag",3013,2,0}, --{"M136 Rocket",3082,0.7,90}, {"CZ 550 Mag",2358,2,0}, {"Lee Enfield Mag",2358,2,0}, {"PDW Mag",2041,2,0}, {"MP5A5 Mag",2041,2,0}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,3.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,2.5}, {"Hatchet",339,1,90,1.8}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,5}, {"Roadflare",324,1,90,6}, {"Milk",2856,1,0,5},