Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- if SERVER then
- maplist = {}
- -- GS
- maplist["freespace_gs"] = "240753564"
- maplist["emp_duststorm1_gs"] = "504222017"
- maplist["gs_bootcamp_v2_pak"] = "240756205"
- maplist["gs_bootcamp_v2r_pak"] = "240756205"
- maplist["gs_bootcamp_v2w_pak"] = "240756205"
- maplist["gs_coastbase_b3"] = "504263097"
- maplist["gs_forest"] = "504252715"
- maplist["gs_forest_night"] = "504252856"
- maplist["gs_forest_v2"] = "514574799"
- maplist["gs_forest_v2_rain"] = "514579844"
- maplist["gs_forest_v2_night"] = "514581246"
- maplist["gs_forest_v2_snow"] = "255768908"
- maplist["gsa_mainbase_v3"] = "504222894"
- maplist["gsa_mainbase_v3_night"] = "504222964"
- -- V92
- maplist["cityruins"] = "151539013"
- maplist["cityruins2"] = "266180263"
- maplist["ec_devils_nest_v1_02"] = "241922614"
- maplist["dm_ricketystructure"] = "492568255"
- maplist["dm_slanska"] = "446165164"
- maplist["fs_basement-dweller"] = "105497660"
- maplist["fs_brain-archives"] = "135616832"
- maplist["fs_bridge"] = "474414964"
- maplist["fs_cityx"] = "517232476"
- maplist["fs_gs-teamspeak"] = "133545651"
- maplist["fs_luckyhouse"] = "161584931"
- maplist["fs_toysoldiers"] = "171540690"
- maplist["fs_warehouse"] = "482291622"
- maplist["fs_western"] = "215552742"
- maplist["fun_shootingpractice"] = "483873722"
- maplist["garrison"] = "480119105"
- maplist["gm10_floodinvasion"] = "105496320"
- maplist["gm_aether_aerodromes"] = "177059754"
- maplist["gm_apehouse_winter_day"] = "110825455"
- maplist["gm_apehouse_winter_day"] = "110823762"
- maplist["gm_apehouse_winter_night"] = "110825455"
- maplist["gm_apehouse_winter_night"] = "110823762"
- maplist["gm_apehouse_winter_sunset"] = "110825455"
- maplist["gm_apehouse_winter_sunset"] = "110823762"
- maplist["gm_arid_mesa"] = "144936535"
- maplist["gm_arid_mesa_night"] = "148147085"
- maplist["gm_arid_valley_v2"] = "510346779"
- maplist["gm_arid_valley_v2_night"] = "510347812"
- maplist["gm_bar"] = "141152541"
- maplist["gm_bigcity"] = "105982362"
- maplist["gm_coolpit"] = "482373199"
- maplist["gm_coolsnow"] = "200098715"
- maplist["gm_construct_in_flatgrass"] = "397861545"
- maplist["gm_cvn78"] = "107210344"
- maplist["srp_darkdolina_v3"] = "174264310" -- Part 1
- maplist["srp_darkdolina_v3"] = "174265222" -- Part 2
- maplist["srp_darkdolina_v3"] = "165772389" -- Catch-22
- maplist["srp_darkdolina_v3"] = "132907756" -- Catch-22
- maplist["gm_bigisland"] = "169600867"
- maplist["gm_dddustbowl2"] = "108093685"
- maplist["gm_dddustbowl2night"] = "108101584"
- maplist["gm_floatingworlds"] = "104485502"
- maplist["gm_floatingworlds_ii"] = "104486484"
- maplist["gm_floatingworlds_ii_night"] = "104487702"
- maplist["gm_floatingworlds_3"] = "122421739"
- maplist["gm_fork"] = "326332456"
- maplist["gm_flatgrass2012"] = "107348679"
- maplist["gm_helicarrier"] = "287575864"
- maplist["gm_hugehill"] = "239008099"
- maplist["gm_lostcoast"] = "337303052"
- maplist["gm_mobenix_v3_final"] = "140618773"
- maplist["gm_mountainlake2"] = "349856780"
- maplist["gm_mountainside"] = "149823609"
- maplist["gm_ninfield_v2exp"] = "505151457"
- maplist["gm_nuclear_winter_2"] = "278185854" -- Map
- maplist["gm_nuclear_winter_2"] = "165772389" -- Catch-22
- maplist["gm_nuclear_winter_2"] = "132907756" -- Catch-22
- maplist["gm_nuclear_winter_2"] = "174264310" -- Catch-22
- maplist["gm_nuclear_winter_2"] = "174265222" -- Catch-22
- maplist["gm_nuclear_winter_3"] = "278205026" -- Map
- maplist["gm_nuclear_winter_3"] = "165772389" -- Catch-22
- maplist["gm_nuclear_winter_3"] = "132907756" -- Catch-22
- maplist["gm_nuclear_winter_3"] = "174264310" -- Catch-22
- maplist["gm_nuclear_winter_3"] = "174265222" -- Catch-22
- maplist["gm_nuclear_winter_v2"] = "278111458" -- Map
- maplist["gm_nuclear_winter_v2"] = "165772389" -- Catch-22
- maplist["gm_nuclear_winter_v2"] = "132907756" -- Catch-22
- maplist["gm_nuclear_winter_v2"] = "174264310" -- Catch-22
- maplist["gm_nuclear_winter_v2"] = "174265222" -- Catch-22
- maplist["gm_nuclear_winter_resurgence"] = "288843031" -- Map
- maplist["gm_nuclear_winter_resurgence"] = "165772389" -- Catch-22
- maplist["gm_nuclear_winter_resurgence"] = "132907756" -- Catch-22
- maplist["gm_nuclear_winter_resurgence"] = "174265222" -- Catch-22
- maplist["gm_nuclear_winter_resurgence"] = "174264310" -- Catch-22
- -- Empires Maps
- maplist["gm_emp_arid"] = "237704514"
- maplist["gm_emp_canyon"] = "237704514"
- maplist["gm_emp_mvalley"] = "237704514"
- maplist["gm_emp_palmbay"] = "237704514"
- maplist["gm_emp_chain"] = "613046581"
- maplist["gm_open_glades"] = "504723505"
- maplist["gm_reactionsew"] = "112108040"
- maplist["gm_supersizeroom_v2"] = "104793138"
- maplist["gm_skylife_v1"] = "107992135"
- maplist["gm_sunnyisles"] = "107347296"
- maplist["gm_trainset"] = "248213731"
- maplist["gm_ubasev4"] = "216416746"
- maplist["gm_valley"] = "104483504"
- maplist["gm_wave_v2"] = "492521480"
- maplist["gm_wave_v3"] = "492523436"
- maplist["gm_wireconstruct_bna"] = "483850706"
- maplist["hamletv1"] = "504399277"
- maplist["md_ironsky_a6"] = "188652909"
- maplist["pk_bigcity"] = "139277887"
- maplist["raid_martyrdom"] = "133541234"
- maplist["raid_martyrdom_moonlight"] = "518664244"
- maplist["raid_martyrdom_night"] = "518665480"
- maplist["raid_predator"] = "133540980"
- maplist["raid_predator_moonlight"] = "134857165"
- maplist["raid_predator_night"] = "134858294"
- maplist["rp_abandoned"] = "493060157"
- maplist["rp_apocalypse"] = "104522041"
- maplist["rp_artificialisland"] = "492528743"
- maplist["rp_cc_caves_01"] = "242386747"
- maplist["rp_cc_thecanals_2"] = "268370407"
- maplist["rp_c18_v1"] = "132931674"
- maplist["rp_c18_v2"] = "132937160"
- maplist["rp_city8_2"] = "132940295"
- maplist["rp_city8_2_hl2"] = "377981906"
- maplist["rp_city8_canals"] = "132911524"
- maplist["rp_city8_outlandstest"] = "132945275"
- maplist["rp_city8_district1"] = "132919876"
- maplist["rp_city8_district9"] = "132916875"
- maplist["rp_cityx_013"] = "171577404"
- maplist["rp_coast_03_fix"] = "132960387"
- maplist["rp_coast_03_v5"] = "249349705"
- maplist["rp_coast05"] = "132962296"
- maplist["rp_coast_09"] = "132963389"
- maplist["rp_cscdesert_v2-1"] = "110345906"
- maplist["rp_cscdesert_v2-1_propfix"] = "175065893"
- maplist["rp_cscdesert_v2-1_night_newsb"] = "129917725"
- maplist["rp_destroyedcity_final"] = "143166143"
- maplist["rp_eastcoast_v3b"] = "656710823"
- maplist["rp_flatgrass"] = "144831769"
- maplist["rp_fs_coast_07_003_pak"] = "144137567"
- maplist["rp_ineu_apocalypse"] = "278571728"
- maplist["rp_ineu_pass_v1e"] = "143547520"
- maplist["rp_ineu_valley_v1a"] = "129218683"
- maplist["rp_ineu_valley2_v1a"] = "232486601"
- maplist["rp_lp_fork"] = "510244989"
- maplist["rp_necro_forest_a1"] = "128002457"
- maplist["rp_necro_urban_v3b"] = "178935552"
- maplist["rp_outercanals"] = "119420070"
- maplist["rp_outercanals_winter"] = "107641602"
- maplist["rp_pripyat_hl2"] = "507561128"
- maplist["rp_salvation_night_redemption"] = "133030882"
- maplist["rp_salvation_2_stalker"] = "132908407"
- maplist["rp_salvation_2_stalker_snow"] = "132901080"
- maplist["rp_stalker"] = "132907756" -- Map
- maplist["rp_stalker"] = "165772389" -- Catch-22
- maplist["rp_stalker"] = "174264310" -- Catch-22
- maplist["rp_stalker"] = "174265222" -- Catch-22
- maplist["rp_skyhigh"] = "270014545"
- maplist["rp_tnb_coast"] = "303123093"
- maplist["rp_whiteforest_radiostation"] = "410382198"
- maplist["steamclub_v1"] = "482894003"
- maplist["timberland_v3"] = "104522963"
- maplist["tga_ld_buildoff_2012"] = "113306531"
- maplist["tp2_sky_03"] = "134610878"
- maplist["trp_coastal-sub-facility_v2"] = "112661085"
- maplist["ttt_bb_teenroom_b2"] = "141103402"
- maplist["ttt_shattered_island"] = "194401914"
- maplist["valley"] = "142782327"
- maplist["zs_stormier_v1"] = "157194940"
- maplist["zw_coast_v3"] = "366726147"
- local map = game.GetMap() -- Gets the current map name
- local workshopid = maplist[map]
- -- Finds the workshop ID for the current map name from the table above
- if( workshopid != nil )then
- --If the map is in the table above, add it through workshop
- print( "[WORKSHOP] Setting up map download: " ..map.. " has workshop ID of: " ..workshopid )
- resource.AddWorkshop( workshopid )
- else
- --If not, then hope the server has FastDL or the client has the map
- print( "[WORKSHOP] Not available for current map." )
- end
- end
Add Comment
Please, Sign In to add comment