--- كلينت
addEventHandler("onClientGUIClick",root,
if source == GUIEditor.button[1] then
local sel = guiGridListGetSelectedItem(grid) --جلب من القريت لست
local aText = guiGridListGetItemText(grid,sel,1) -- احظار مكان الكلمة اذا كان في قصمين
if ( sel ~= -1 ) then -- يتحقق اذا كان محدد
triggerServerEvent("Remove",localPlayer,aText)
end
end
)
-- سيرفر
removeCommandFromDatabase = function(aText)
executeSQLQuery("DELETE FROM aSokingX2 WHERE aText_ = ?", tostring ( aText ))
end
addEvent("Remove",true)
addEventHandler("Remove",root, function ( aText )
removeCommandFromDatabase(tostring(aText))
outputChatBox("تم الازألة بنجآح",source,0,188,205,true)
end
)