Jump to content

GridList Help!


Recommended Posts

function clickGrid() 
local row, col = guiGridListGetSelectedItem ( mainGridlist ) 
  
if (row == 0) and (col == 1) then 
setElementModel ( dummyPed, 21 ) 
if source == spawnBtn then 
---- 
elseif (row == 1) and (col == 1) then 
setElementModel ( dummyPed, 29 ) 
if source == spawnBtn then 
---- 
elseif (row == 2) and (col == 1) then 
setElementModel ( dummyPed, 45 ) 
if source == spawnBtn then 
---- 
elseif (row == 3) and (col == 1) then 
setElementModel ( dummyPed, 60 ) 
if source == spawnBtn then 
---- 
               end 
            end 
        end 
     end 
  end 
end 
addEventHandler("onClientGUIClick", resourceRoot, clickGrid) 

When I click first gridlist it works, but rest dont.

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...