scienziato-pazzo Posted April 14, 2013 Posted April 14, 2013 Hi, anyone knows what's the event where a player clicks in the row of a gridList?
Puma Posted April 14, 2013 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 "The total IQ of the world is a constant. The more people, the more idiots." - Anonymous.
iPrestege Posted April 14, 2013 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!
DakiLLa Posted April 14, 2013 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 )
codeluaeveryday Posted April 15, 2013 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. Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
Castillo Posted April 15, 2013 Posted April 15, 2013 I've never had such problem, always used "onClientGUIClick" and worked perfectly fine. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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