addEventHandler("onClientGUIClick",root,
function ( )
if source == GUIEditor.button[1] then
local item = guiComboBoxGetSelected ( com )
local text = guiComboBoxGetItemText ( com , item )
local name = guiGetText( editname )
local maill = guiGetText ( editmail )
local card = guiGetText ( editcard )
if ( name and maill and card and text ~="" ) then
triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, maill, card, text )
guiSetEnabled ( GUIEditor.button[1], false )
outMsg("تم إرسال الرسالة",true)
end
end
end
)
addEvent ( "RentSystem:onAccept", true )
addEventHandler ( "RentSystem:onAccept", root,
function (name,maill,card,text,Plr,Serial)
local row = guiGridListAddRow ( gridlist)
guiGridListSetItemText (gridlist,row,1,Plr,false,false)
guiGridListSetItemText (gridlist,row,2,text,false,false)
guiGridListSetItemText (gridlist,row,3,Serial,false,false)
end )