1337.Ibrahim Posted August 10, 2017 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
NeXuS™ Posted August 10, 2017 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
Simi23 Posted August 10, 2017 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
1337.Ibrahim Posted August 10, 2017 Author Posted August 10, 2017 (edited) @Simi23 thanks <3 @NeXuS™ thanks for help Edited August 10, 2017 by Talis
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