BorderLine Posted October 11, 2012 Share Posted October 11, 2012 Hi everyone, well i have a question. i was searching in forum bot i didnt find about this. I need a example I have a combobox and i added items something like this infernus_choose = guiCreateComboBox(13,65,295,75,"choose",false,tabs[6]) guiComboBoxAddItem ( palette_choose, "Disabled" ) guiComboBoxAddItem ( palette_choose, "Model 1" ) guiComboBoxAddItem ( palette_choose, "Model 2" ) and the event should be "onClientGUIComboBoxAccepted" right? well im want make and combobox to select diferents models of infernus. how i can do this? if someone can explainme how detect when i select model 1 or model 2 or disabled Thanks for your time Link to comment
TAPL Posted October 12, 2012 Share Posted October 12, 2012 The example in wiki explained it. https://wiki.multitheftauto.com/wiki/OnClientGUIComboBoxAccepted just change this if ( text ~= "" ) then to if ( text == "Model 1" ) then Link to comment
BorderLine Posted October 12, 2012 Author Share Posted October 12, 2012 great..! i didnt see that.. thanks man is working 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