' A F . Posted June 27, 2016 Share Posted June 27, 2016 تمام كدا addEvent( "RentSystem:onCreateNewOrder", true ) addEventHandler( "RentSystem:onCreateNewOrder", root, function (name,maill,card,text) local Plr = getPlayerName( source ) local Serial = getSerialPlayer( source ) triggerClientEvent("RentSystem:onAccept",root,name,maill,card,text,Plr,Serial) end ) 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", root, 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,getPlayerName(source),false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,getPlayerSerial(source),false,false) end ) getSerialPlayer = X Use getPlayerSerial 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