harryh Posted March 16, 2017 Share Posted March 16, 2017 When I have the combobox is open, I can see all the entries in it but am unable to click on any of them and they don't do anything. DogCreate.DogColorCombo = guiCreateComboBox(0.28, 0.50, 0.63, 0.12, "", true, DogCreate.Window) local item = guiComboBoxGetSelected(DogCreate.BreedBox) local text = guiComboBoxGetItemText(DogCreate.BreedBox, item) local itemc = guiComboBoxGetSelected(DogCreate.DogColorCombo) local textc = guiComboBoxGetItemText(DogCreate.DogColorCombo, item) elseif (text == "Pitbull") then -- brown293 white294 grey295 blackwhtie296 setElementModel(DogCreatorPed, 293) guiComboBoxClear(DogCreate.DogColorCombo) guiComboBoxAddItem(DogCreate.DogColorCombo, "Brown") guiComboBoxAddItem(DogCreate.DogColorCombo, "White") guiComboBoxAddItem(DogCreate.DogColorCombo, "Grey") guiComboBoxAddItem(DogCreate.DogColorCombo, "Black & White") if itemc then if (textc == "Brown") then setElementModel(DogCreatorPed, 293) elseif (textc == "White") then setElementModel(DogCreatorPed, 294) elseif (textc == "Grey") then setElementModel(DogCreatorPed, 295) elseif (textc == "Black & White") then setElementModel(DogCreatorPed, 296) end end end Link to comment
Anubhav Posted March 17, 2017 Share Posted March 17, 2017 try guiBringToFront on the combobox and see Link to comment
harryh Posted March 17, 2017 Author Share Posted March 17, 2017 I have fixed it. was due to guiClearComboBox in a loop 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