Advertisement
thiaguinkk

skybox-changer-v5

Mar 1st, 2020
1,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | None | 0 0
  1. local msc_ref = gui.Reference( "Visuals", "World", "Materials" );
  2. local lua_combobox = gui.Combobox( msc_ref, "lua_skyboxppicker", "VC EH PRETINHO BRO 777",
  3. "Galaxy", "Bartuc Canyon", "Bartuc Grey",
  4. "Blue One", "Blue Two", "Blue Three", "Blue Four", "Blue Five", "Blue Six",
  5. "Css Default",
  6. "Dark One", "Dark Two", "Dark Three", "Dark Four", "Dark Five",
  7. "Extreme Glaciation",
  8. "Green One", "Green Two", "Green Three", "Green Four", "Green Five", "Green Screen",
  9. "Grey Sky",
  10. "Night One", "Night Two", "Night Three", "Night Four", "Night Five",
  11. "Orange One", "Orange Two", "Orange Three", "Orange Four", "Orange Five", "Orange Six",
  12. "Persistent Fog",
  13. "Pink One", "Pink Two", "Pink Three", "Pink Four", "sky_descent",
  14. "Polluted", "Toxic", "Water Sunset" );
  15.  
  16.  
  17.  
  18. function SkyBox()
  19. local skybox_old = client.GetConVar("sv_skyname");
  20. local skybox_new = (lua_combobox:GetValue());
  21.  
  22. if ( skybox_new == 0 ) then
  23. client.SetConVar("sv_skyname" , "******")
  24.  
  25. elseif (skybox_new == 1 ) then
  26. client.SetConVar("sv_skyname" , "bartuc_canyon_")
  27.  
  28. elseif (skybox_new == 2 ) then
  29. client.SetConVar("sv_skyname" , "bartuc_grey_sky_")
  30.  
  31. elseif (skybox_new == 3 ) then
  32. client.SetConVar("sv_skyname" , "blue1")
  33.  
  34. elseif (skybox_new == 4 ) then
  35. client.SetConVar("sv_skyname" , "blue2")
  36.  
  37. elseif (skybox_new == 5 ) then
  38. client.SetConVar("sv_skyname" , "blue3")
  39.  
  40. elseif (skybox_new == 6 ) then
  41. client.SetConVar("sv_skyname" , "blue4")
  42.  
  43. elseif (skybox_new == 7 ) then
  44. client.SetConVar("sv_skyname" , "blue5")
  45.  
  46. elseif (skybox_new == 8 ) then
  47. client.SetConVar("sv_skyname" , "blue6")
  48.  
  49. elseif (skybox_new == 9 ) then
  50. client.SetConVar("sv_skyname" , "cssdefault")
  51.  
  52. elseif (skybox_new == 10 ) then
  53. client.SetConVar("sv_skyname" , "dark1")
  54.  
  55. elseif (skybox_new == 11 ) then
  56. client.SetConVar("sv_skyname" , "dark2")
  57.  
  58. elseif (skybox_new == 12 ) then
  59. client.SetConVar("sv_skyname" , "dark3")
  60.  
  61. elseif (skybox_new == 13 ) then
  62. client.SetConVar("sv_skyname" , "dark4")
  63.  
  64. elseif (skybox_new == 14 ) then
  65. client.SetConVar("sv_skyname" , "dark5")
  66.  
  67. elseif (skybox_new == 15 ) then
  68. client.SetConVar("sv_skyname" , "extreme_glaciation_")
  69.  
  70. elseif (skybox_new == 16 ) then
  71. client.SetConVar("sv_skyname" , "green1")
  72.  
  73. elseif (skybox_new == 17 ) then
  74. client.SetConVar("sv_skyname" , "green2")
  75.  
  76. elseif (skybox_new == 18 ) then
  77. client.SetConVar("sv_skyname" , "green3")
  78.  
  79. elseif (skybox_new == 19 ) then
  80. client.SetConVar("sv_skyname" , "green4")
  81.  
  82. elseif (skybox_new == 20 ) then
  83. client.SetConVar("sv_skyname" , "green5")
  84.  
  85. elseif (skybox_new == 21 ) then
  86. client.SetConVar("sv_skyname" , "greenscreen")
  87.  
  88. elseif (skybox_new == 22 ) then
  89. client.SetConVar("sv_skyname" , "greysky")
  90.  
  91. elseif (skybox_new == 23 ) then
  92. client.SetConVar("sv_skyname" , "night1")
  93.  
  94. elseif (skybox_new == 24 ) then
  95. client.SetConVar("sv_skyname" , "night2")
  96.  
  97. elseif (skybox_new == 25 ) then
  98. client.SetConVar("sv_skyname" , "night3")
  99.  
  100. elseif (skybox_new == 26 ) then
  101. client.SetConVar("sv_skyname" , "night4")
  102.  
  103. elseif (skybox_new == 27 ) then
  104. client.SetConVar("sv_skyname" , "night5")
  105.  
  106. elseif (skybox_new == 28 ) then
  107. client.SetConVar("sv_skyname" , "orange1")
  108.  
  109. elseif (skybox_new == 29 ) then
  110. client.SetConVar("sv_skyname" , "orange2")
  111.  
  112. elseif (skybox_new == 30 ) then
  113. client.SetConVar("sv_skyname" , "orange3")
  114.  
  115. elseif (skybox_new == 31 ) then
  116. client.SetConVar("sv_skyname" , "orange4")
  117.  
  118. elseif (skybox_new == 32 ) then
  119. client.SetConVar("sv_skyname" , "orange5")
  120.  
  121. elseif (skybox_new == 33 ) then
  122. client.SetConVar("sv_skyname" , "orange6")
  123.  
  124. elseif (skybox_new == 34 ) then
  125. client.SetConVar("sv_skyname" , "persistent_fog_")
  126.  
  127. elseif (skybox_new == 35 ) then
  128. client.SetConVar("sv_skyname" , "pink1")
  129.  
  130. elseif (skybox_new == 36 ) then
  131. client.SetConVar("sv_skyname" , "pink2")
  132.  
  133. elseif (skybox_new == 37 ) then
  134. client.SetConVar("sv_skyname" , "pink3")
  135.  
  136. elseif (skybox_new == 38 ) then
  137. client.SetConVar("sv_skyname" , "pink4")
  138.  
  139. elseif (skybox_new == 39 ) then
  140. client.SetConVar("sv_skyname" , "sky_descent")
  141.  
  142. elseif (skybox_new == 40 ) then
  143. client.SetConVar("sv_skyname" , "polluted_atm_")
  144.  
  145. elseif (skybox_new == 41 ) then
  146. client.SetConVar("sv_skyname" , "toxic_atm_")
  147.  
  148. elseif (skybox_new == 42 ) then
  149. client.SetConVar("sv_skyname" , "water_sunset_")
  150.  
  151.  
  152. end
  153.  
  154. end
  155.  
  156. callbacks.Register("Draw", "SkyBox", SkyBox)
  157. callbacks.Register( "Draw", "LuaGuiTest", OnDraw );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement