carvalhosgamer Posted May 23, 2014 Posted May 23, 2014 hello, I'm Tryng many times to do one grid look this: local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end local col2 = guiGridListAddColumn(options, "San Fierro" , 0.85) if (col2) then local row2 = guiGridListAddRow ( options) guiGridListSetItemText ( options, row2, col2, "City 1", false, false ) end ok that's Works, But i need the the Column below each other, Vertical, not Horizontal Please, Help me! Thank you veru Much
MIKI785 Posted May 23, 2014 Posted May 23, 2014 So you want the headings to be on the left and not on the top? You can't change that.
carvalhosgamer Posted May 23, 2014 Author Posted May 23, 2014 Ok, i got help with other thing thats my code: local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end end How I capture the value from row? thanks
Booo Posted May 23, 2014 Posted May 23, 2014 Ok, i gothelp with other thing thats my code: local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end end How I capture the value from row? thanks local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end addEventHandler ( "onClientGUIClick", options, function() if not ( guiGridListGetSelectedItem (options) == -1 ) then local value = guiGridListGetItemText (options, guiGridListGetSelectedItem(options), 1 ) end end)
carvalhosgamer Posted May 23, 2014 Author Posted May 23, 2014 Ok, i gothelp with other thing thats my code: local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end end How I capture the value from row? thanks thank you very much! local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end addEventHandler ( "onClientGUIClick", options, function() if not ( guiGridListGetSelectedItem (options) == -1 ) then local value = guiGridListGetItemText (options, guiGridListGetSelectedItem(options), 1 ) end end)
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