Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local msc_ref = gui.Reference( "Visuals", "World", "Materials" );
  2. local lua_combobox = gui.Combobox( msc_ref, "lua_skyboxppicker", "Skybox picker",
  3.  
  4.  
  5. "Pink One" );
  6.  
  7.  
  8. function SkyBox()
  9. local skybox_old = client.GetConVar("sv_skyname");
  10. local skybox_new = (lua_combobox:GetValue());
  11.  
  12. if ( skybox_new == 0 ) then
  13. client.SetConVar("sv_skyname" , "pink1")
  14.  
  15.  
  16. end
  17.  
  18. end
  19.  
  20. callbacks.Register("Draw", "SkyBox", SkyBox)
  21. callbacks.Register( "Draw", "LuaGuiTest", OnDraw );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement