.:HyPeX:. Posted April 29, 2014 Share Posted April 29, 2014 hey guys, i dont see any item.. DataSelect = guiCreateComboBox(x*0.5, y*0.1, x*0.2, y*0.05, "Data",false) guiSetVisible(DataSelect, false) for i=1, #Dashboard.rankings.labels do local id = guiComboBoxAddItem(DataSelect, tostring(Dashboard.rankings.labels[i])) guiComboBoxSetItemText(DataSelect, id, tostring(id..": "..Dashboard.rankings.labels[i])) guiComboBoxSetSelected(DataSelect, id) outputChatBox("added "..Dashboard.rankings.labels[i]) outputChatBox(id) end output: added Kills 0 added Deaths 1 added Headshots 2 added PlayTime 3 added EXP 4 added Level 5 added Rank 6 More accurately, this is what it happens: Link to comment
Castillo Posted April 29, 2014 Share Posted April 29, 2014 That's because the height it's too small. Combo box doesn't auto resize for each item, you must do it yourself. Try this useful function: https://wiki.multitheftauto.com/wiki/Gu ... justHeight Link to comment
.:HyPeX:. Posted April 29, 2014 Author Share Posted April 29, 2014 Oh ok, didnt saw that, thanks! 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