1337.Ibrahim Posted August 10, 2017 Share Posted August 10, 2017 (edited) hello , can someone tell me where the problem addEventHandler("onClientGUIClick",resourceRoot,function() if ( source == removeserial ) then selected = guiGridListGetSelectedItem(GridBan) if selected ~= -1 then guiGridListRemoveRow ( GridBan,selected ) data = guiGridListGetItemText(GridBan, selected,1) triggerServerEvent("removeserial",localPlayer,data) end end end) Edited August 10, 2017 by Talis Link to comment
NeXuS™ Posted August 10, 2017 Share Posted August 10, 2017 Is it not removing the row? Btw, if you remove the row before getting the data out of it, the data will be different than it is supposed to be. 1 Link to comment
Simi23 Posted August 10, 2017 Share Posted August 10, 2017 addEventHandler("onClientGUIClick",resourceRoot, function() if ( source == removeserial ) then selected = guiGridListGetSelectedItem(GridBan) if selected ~= -1 then data = guiGridListGetItemText(GridBan, selected,1) triggerServerEvent("removeserial",localPlayer,data) guiGridListRemoveRow (GridBan,selected) end end end) This should do it I think. 1 Link to comment
1337.Ibrahim Posted August 10, 2017 Author Share Posted August 10, 2017 (edited) @Simi23 thanks <3 @NeXuS™ thanks for help Edited August 10, 2017 by Talis 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