scienziato-pazzo Posted April 14, 2013 Share Posted April 14, 2013 Hi, anyone knows what's the event where a player clicks in the row of a gridList? Link to comment
iPrestege Posted April 14, 2013 Share Posted April 14, 2013 guiGridListGetSelectedItem Link to comment
Puma Posted April 14, 2013 Share Posted April 14, 2013 guiGridListGetSelectedItem Hi, anyone knows what's the event where a player clicks in the row of a gridList? Just check the list of client scripting events next time. https://wiki.multitheftauto.com/wiki/Cl ... ing_Events It''s right there. onClientGUIClick + guiGridListGetSelectedItem Link to comment
iPrestege Posted April 14, 2013 Share Posted April 14, 2013 guiGridListGetSelectedItem Hi, anyone knows what's the event where a player clicks in the row of a gridList? Just check the list of client scripting events next time. https://wiki.multitheftauto.com/wiki/Cl ... ing_Events It''s right there. onClientGUIClick + guiGridListGetSelectedItem Yes i know that but i think he know it's on client click! Link to comment
DakiLLa Posted April 14, 2013 Share Posted April 14, 2013 local myGridList = guiCreateGridList( ... ) addEventHandler( "onClientGUIClick", myGridList, function( btn ) if btn ~= 'left' then return false end local row, col = guiGridListGetSelectedItem( source ) --check if we actually clicked on some row if row >= 0 and col >= 0 then --do stuff here end end, false ) Link to comment
codeluaeveryday Posted April 15, 2013 Share Posted April 15, 2013 MTA recently fixed this bug where clicking the GUI gridlist wasn't in onClientGUIClick, it is in the newer server update now. Link to comment
Castillo Posted April 15, 2013 Share Posted April 15, 2013 I've never had such problem, always used "onClientGUIClick" and worked perfectly fine. 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