Advertisement
Guest User

Base script

a guest
Jan 25th, 2015
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.83 KB | None | 0 0
  1. maplist = {}
  2.  
  3.  
  4. maplist["ttt_67thway_v4"] = "105195237"
  5. maplist["ttt_bb_teenroom_b2"] = "141103402"
  6. maplist["ttt_dolls"] = "195227686"
  7. maplist["ttt_lttp_kakariko_a4"] = "118937144"
  8. maplist["ttt_minecraft_b5"] = "159321088"
  9. maplist["ttt_rooftops_a2_f1"] = "163335613"
  10. maplist["ttt_waterworld"] = "157420728"
  11. maplist["ttt_space_station"] = "163344355"
  12. maplist["ttt_mc_skyislands"] = "106498411"
  13. maplist["ttt_canyon_a3"] = "195603874"
  14. maplist["ttt_alt_borders_b13"] = "195601747"
  15. maplist["ttt_district_a5"] = "186843370"
  16. maplist["ttt_island_2013"] = "183797802"
  17. maplist["ttt_jungala"] = "189584612"
  18. maplist["ttt_escape_the_island_b7"] = "183683521"
  19. maplist["ttt_shattered_island"] = "194401914"
  20. maplist["ttt_moondeagle_3rd_nd"] = "145772871"
  21. maplist["ttt_bank_b3"] = "186008966"
  22. maplist["ttt_plaza_b7"] = "137891506"
  23. maplist["ttt_summermansion_b3"] = "124960079"
  24. maplist["ttt_whitehouse_b2"] = "163347610"
  25. maplist["ttt_stargate"] = "177663377"
  26. maplist["ttt_lordcharles_mansion_v5"] = "142394593"
  27. maplist["ttt_mw2_terminal"] = "176887855"
  28. maplist["ttt_clue"] = "192491456"
  29. maplist["ttt_scarisland_b1"] = "185635263"
  30. maplist["ttt_minecraftcity_v4"] = "186842624"
  31. maplist["ttt_infini_b5"] = "198450869"
  32. maplist["ttt_airbus_b3"] = "199933864"
  33. maplist["ttt_hairyhouse"] = "196720505"
  34. maplist["ttt_skyscraper"] = "183688633"
  35. maplist["ttt_hendrix"] = "183684863"
  36. maplist["ttt_office_complex"] = "213669027"
  37. maplist["ttt_trappycottage_b2"] = "214511049"
  38. maplist["ttt_mainstreet_v1"] = "216033779"
  39. maplist["ttt_datmap"] = "222957320"
  40. maplist["ttt_clocktown_v1"] = "220740097"
  41. maplist["ttt_comancher"] = "109144069"
  42. maplist["ttt_lost_temple"] = "106527577"
  43. maplist["zuhhh"] = "222346103"
  44. maplist["de_saturday_night"] = "221276549"
  45. maplist["ttt_spaceship"] = "299025388"
  46. maplist["ttt_lunar_base"] = "131606096"
  47. maplist["ttt_nightshift"] = "354424320"
  48. maplist["ttt_lego"] = "295897079"
  49. maplist["ttt_rooftops_lost"] = "288523538"
  50. maplist["xmas_nipperhouse"] = "163350462"
  51. maplist["ttt_mc_mineshaft"] = "260153473"
  52. maplist["ttt_67thway_v7"] = "140410125"
  53. maplist["ttt_forest_final"] = "147635981"
  54. maplist["ttt_mc_jondome"] = "322655757"
  55. maplist["ttt_cruise"] = "186012196"
  56. maplist["ttt_terraria"] = "337311940"
  57. maplist["ttt_mc_tiptsky_b5"] = "270494654"
  58. --add more maps here
  59.  
  60.  
  61. local map = game.GetMap() -- Get's the current map name
  62. local workshopid = maplist[map]
  63. -- Finds the workshop ID for the current map name from the table above
  64.  
  65. if( workshopid != nil )then
  66.         --If the map is in the table above, add it through workshop
  67.         print( "[WORKSHOP] Setting up maps. " ..map.. " workshop ID: " ..workshopid )
  68.         resource.AddWorkshop( workshopid )
  69. else
  70.         --If not, ) then hope the server has FastDL or the client has the map
  71.         print( "[WORKSHOP] Not available for current map. Using FastDL instead hopefully..." )
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement