Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local msc_ref = gui.Reference( "Visuals", "World", "Materials" );
- local lua_combobox = gui.Combobox( msc_ref, "lua_skyboxppicker", "Skybox picker",
- "Pink One" );
- function SkyBox()
- local skybox_old = client.GetConVar("sv_skyname");
- local skybox_new = (lua_combobox:GetValue());
- if ( skybox_new == 0 ) then
- client.SetConVar("sv_skyname" , "pink1")
- end
- end
- callbacks.Register("Draw", "SkyBox", SkyBox)
- callbacks.Register( "Draw", "LuaGuiTest", OnDraw );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement