Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local menu_Window = guiCreateWindow(0.3,0.3,0.5,0.2,"Set Volume",TRUE)
- local button = guiCreateButton( 0.36, 0.75, 0.2, 0.5, "ok", TRUE,menu_Window )
- local scroll = guiCreateScrollBar ( 0.2, 0.4, 0.7, 0.15, TRUE, TRUE, menu_Window)
- guiCreateLabel ( 0.05, 0.4, 0.2, 0.5, "Radio Vol.", TRUE, menu_Window)
- guiScrollBarSetScrollPosition(scroll,100)
- FUNCTION showMenu ()
- guiSetVisible ( menu_Window, TRUE )
- showCursor ( TRUE )
- addEventHandler ( "onClientGUIClick", button, click,FALSE )
- setSoundVolume(sound,0.01*guiScrollBarGetScrollPosition(scroll))
- end
- FUNCTION click()
- guiSetVisible ( menu_Window, FALSE )
- showCursor ( FALSE )
- end
- showMenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement