Jump to content

[HELP] guiGridListAddColumn Problem


Recommended Posts

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

Link to comment

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

Link to comment
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

  
  
  
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) 

Link to comment
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

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) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...