Mr.DeViLsS Posted August 24, 2016 Share Posted August 24, 2016 Hi. Please tell me how to make the range for the ScrollBar. For example, to the slider was only from 0 to 3, for example. Link to comment
Mr.DeViLsS Posted August 24, 2016 Author Share Posted August 24, 2016 Why doesn't works "HorzRange in guiSetProperty? Link to comment
LabiVila Posted August 24, 2016 Share Posted August 24, 2016 Is it a GUI scrollbar? If yes, then Wiki provides the best example: https://wiki.multitheftauto.com/wiki/GuiCreateScrollBar otherwise post your script so we can have a clue what you talkin' about Link to comment
Mr.DeViLsS Posted August 24, 2016 Author Share Posted August 24, 2016 Is it a GUI scrollbar? If yes, then Wiki provides the best example: https://wiki.multitheftauto.com/wiki/GuiCreateScrollBarotherwise post your script so we can have a clue what you talkin' about elementGUI.scrollBar = guiCreateScrollBar ( 0.02, 0.85, 0.96, 0.04, true, true, elementGUI.window ) guiSetProperty ( elementGUI.scrollBar, "StepSize", 0.01 ) How to make the scroll range was from 0 to 3, for example. Or from 0 to 6 1 Link to comment
xyz Posted August 25, 2016 Share Posted August 25, 2016 onClientGUIScroll, guiScrollBarGetScrollPosition(scroll) / amount is what I use to limit the maximum Link to comment
Mr.DeViLsS Posted August 27, 2016 Author Share Posted August 27, 2016 onClientGUIScroll, guiScrollBarGetScrollPosition(scroll) / amount is what I use to limit the maximum Thank you. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now