Jump to content

x{طلب كود}x


FAHD+18

Recommended Posts

السلام عليكم ورحمه الله وبركاته اليوم مسوي لما يكتب في ايديت و يحدد شيك بوكس وكومب بوكس يجي في القريد لست الكلام النا مسويه بس ولله م عارف اسوي الحفظ ابي مبرمج يسوهالي لاهنتم شسباب ملحوظه فكره المود مأخوذه : هذا الكود

function Click ( btn )
            if ( source == GUIEditor.checkbox[1] ) then
            guiCheckBoxSetSelected ( GUIEditor.checkbox[2], not guiCheckBoxGetSelected ( source ) )
            elseif ( source == GUIEditor.checkbox[2] ) then
            guiCheckBoxSetSelected ( GUIEditor.checkbox[1], not guiCheckBoxGetSelected ( source ) )
        end
       if btn == "left" then
                   if ( source == GUIEditor.button[1] ) then
               local item = guiComboBoxGetSelected ( com ) 
                       local card = guiComboBoxGetItemText( com, item )
               local name, email, number = guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ), guiGetText ( GUIEditor.edit[3] )
               if name == "" or number == "" or card == "" or email == "" then return end
                   triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, email, number, card )
               guiSetEnabled ( GUIEditor.button[1], false )
end
end
end
addEventHandler ( 'onClientGUIClick', root, Click )
 
addEvent ( "RentSystem:onSendSubscribePlayers", true )
addEventHandler ( "RentSystem:onSendSubscribePlayers", root,
 function ( name, email, number, card, Serial, player )
            local row = guiGridListAddRow ( GUIEditor.gridlist[4] )
               guiGridListSetItemText( GUIEditor.gridlist[4], row, 1,' '..player:gsub("#%x%x%x%x%x%x", "")..'('..name..') ',false, false)
               guiGridListSetItemData ( GUIEditor.gridlist[4], row, 1, player,false,false)
               guiGridListSetItemText(GUIEditor.gridlist[4], row, 4, Serial , false, false)
               guiGridListSetItemText(GUIEditor.gridlist[4], row, 2, card, false, false)
               guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 1, 255, 255, 0 )
               guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 2, 255, 255, 0 )
               guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 3, 255, 255, 0 )
               guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 4, 255, 255, 0 )
      end
 )  
 
-- ملف سرفر
addEvent ( "RentSystem:onCreateNewOrder", true )
addEventHandler ( "RentSystem:onCreateNewOrder", root,
      function ( name, email, number, card )
           if ( name and email and number and card ) then
             local player = getPlayerName ( source )
             local Serial = getPlayerSerial ( source )
             triggerClientEvent ( "RentSystem:onSendSubscribePlayers", root, name, email, number, card, Serial, player )
        end
    end
) ;

 

Link to comment
  1. function Click ( btn )
    if ( source == GUIEditor.checkbox[1] ) then
    guiCheckBoxSetSelected ( GUIEditor.checkbox[2], not guiCheckBoxGetSelected ( source ) )
    elseif ( source == GUIEditor.checkbox[2] ) then
    guiCheckBoxSetSelected ( GUIEditor.checkbox[1], not guiCheckBoxGetSelected ( source ) )
    end
    if btn == "left" then
    if ( source == GUIEditor.button[1] ) then
    local item = guiComboBoxGetSelected ( com ) 
    local card = guiComboBoxGetItemText( com, item )
    local name, email, number = guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ), guiGetText ( GUIEditor.edit[3] )
    if name == "" or number == "" or email == "" then return end
    triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, email, number, card )
    guiSetEnabled ( GUIEditor.button[1], false )
    end
    end
    end
    addEventHandler ( 'onClientGUIClick', root, Click )
    
    addEvent ( "RentSystem:onSendSubscribePlayers", true )
    addEventHandler ( "RentSystem:onSendSubscribePlayers", root,
    function ( name, email, number, card, Serial, player )
    local row = guiGridListAddRow ( GUIEditor.gridlist[4] )
    guiGridListSetItemText( GUIEditor.gridlist[4], row, 1,' '..player:gsub("#%x%x%x%x%x%x", "")..'('..name..') ',false, false)
    guiGridListSetItemData ( GUIEditor.gridlist[4], row, 1, player,false,false)
    guiGridListSetItemText(GUIEditor.gridlist[4], row, 4, Serial , false, false)
    guiGridListSetItemText(GUIEditor.gridlist[4], row, 2, card, false, false)
    guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 1, 255, 255, 0 )
    guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 2, 255, 255, 0 )
    guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 3, 255, 255, 0 )
    guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 4, 255, 255, 0 )
    end
    ) 
    
    -- ملف سرفر
    addEvent ( "RentSystem:onCreateNewOrder", true )
    addEventHandler ( "RentSystem:onCreateNewOrder", root,
    function ( name, email, number, card )
    if ( name and email and number and card ) then
    local player = getPlayerName ( source )
    local Serial = getPlayerSerial ( source )
    triggerClientEvent ( "RentSystem:onSendSubscribePlayers", root, name, email, number, card, Serial, player )
    end
    end
    ) ;

    جرب .

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...