FlyingSpoon Posted April 23, 2015 Share Posted April 23, 2015 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
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