Jump to content

edit


Recommended Posts

سلام عليكم عملت لوحه لاكن ما شغاله

كلنت

GUIEditor = { 
    checkbox = {}, 
    button = {}, 
    gridlist = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd ,false) 
        GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") 
        GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") 
        GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") 
        GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") 
        GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") 
        GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) 
        GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) 
        GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) 
        GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) 
        GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) 
        guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") 
        grid = guiCreateGridList(9, 24, 222, 206, false, wnd) 
        guiGridListAddColumn(grid, "Time", 0.9)     
  
        wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) 
        guiWindowSetSizable(wnd2, false) 
        guiSetVisible(wnd2 ,false)  
        GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) 
        GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) 
        GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")     
  
         
    end 
) 
  
  
function Strong ( )  
guiSetVisible ( wnd,true ) 
showCursor ( true ) -- اظهار الماوس 
end 
addCommandHandler ( "Teams",Strong ) 
  
  
  
addEventHandler("onClientGUIClick",resourceRoot,  
    function ( ) 
        if ( source == GUIEditor.button[2] ) then 
            guiSetVisible(wnd2,false) 
            showCursor(false) 
             elseif ( source == GUIEditor.button[3] ) then 
                guiSetVisible(wnd,false) 
                guiSetVisible(wnd2,true) 
        end 
    end 
 )  
Link to comment
    GUIEditor = { 
        checkbox = {}, 
        button = {}, 
        gridlist = {}, 
        edit = {}, 
        label = {} 
    } 
            wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) 
            guiWindowSetSizable(wnd, false) 
            guiSetVisible(wnd ,false) 
            GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") 
            GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") 
            GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) 
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") 
            GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) 
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") 
            GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) 
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") 
            GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) 
            GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) 
            GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) 
            GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) 
            GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) 
            guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") 
            grid = guiCreateGridList(9, 24, 222, 206, false, wnd) 
            guiGridListAddColumn(grid, "Time", 0.9)     
      
            wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) 
            guiWindowSetSizable(wnd2, false) 
            guiSetVisible(wnd2 ,false) 
            GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) 
            GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) 
            GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
            GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")     
      
     
      
    function Strong ( ) 
    guiSetVisible ( wnd,true ) 
    showCursor ( true ) -- اظهار الماوس 
    end 
    addCommandHandler ( "Teams",Strong ) 
      
      
      
    addEventHandler("onClientGUIClick",resourceRoot, 
        function ( ) 
            if ( source == GUIEditor.button[2] ) then 
                guiSetVisible(wnd2,false) 
                showCursor(false) 
                 elseif ( source == GUIEditor.button[3] ) then 
                    guiSetVisible(wnd,false) 
                    guiSetVisible(wnd2,true) 
            end 
        end 
     )  

Link to comment

شالمشكله ي اوسكر دلوقتي؟

  
   GUIEditor = { 
        checkbox = {}, 
        button = {}, 
        gridlist = {}, 
        edit = {}, 
        label = {} 
    } 
------ 
  
ranks = { 
{'1',minutes}, 
{'2',mintes}, 
{'3',mintes}, 
{'5',mintes}, 
{'10',mintes}, 
{'15',mintes}, 
{'20',mintes}, 
{'30',mintes}, 
{'40',mintes}, 
{'1',hours}, 
{'2',hours}, 
{'3',hours} 
} 
-- 
local screenW, screenH = guiGetScreenSize() 
            wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) 
            guiWindowSetSizable(wnd, false) 
            guiSetVisible(wnd ,false) 
            GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") 
            GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") 
            GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) 
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") 
            GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) 
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") 
            GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) 
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") 
            GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) 
            GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) 
            GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) 
            GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) 
            GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) 
            guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") 
            grid = guiCreateGridList(9, 24, 222, 206, false, wnd) 
            guiGridListAddColumn(grid, "Time", 0.9)     
      
            wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) 
            guiWindowSetSizable(wnd2, false) 
            guiSetVisible(wnd2 ,false) 
            GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) 
            GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) 
            GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
            GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")     
      
    
      
    function Strong ( ) 
    guiSetVisible ( wnd,true ) 
    showCursor ( true ) -- اظهار الماوس 
    end 
    addCommandHandler ( "Teams",Strong ) 
      
      
      
    addEventHandler("onClientGUIClick",resourceRoot, 
        function ( ) 
            if ( source == GUIEditor.button[2] ) then 
                guiSetVisible(wnd2,false) 
                showCursor(false) 
                 elseif ( source == GUIEditor.button[3] ) then 
                    guiSetVisible(wnd,false) 
                    guiSetVisible(wnd2,true) 
            end 
        end 
     ) 
  
  
     addEventHandler("onClientGUIClick",resourceRoot, 
        function ( ) 
          if ( source == GUIEditor.button[5] ) then 
                guiSetVisible(wnd,false) 
                showCursor(false) 
end 
end) 
  
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1], Row, 1, v[1], false, false) 
    guiGridListSetItemText(GUIEditor.gridlist[1], Row, 2, v[2], false, false) 
end 
  

ما يظهر الجدول في القريد لست

الحاجات الكتبها

Link to comment
شالمشكله ي اوسكر دلوقتي؟
  
   GUIEditor = { 
        checkbox = {}, 
        button = {}, 
        gridlist = {}, 
        edit = {}, 
        label = {} 
    } 
------ 
  
ranks = { 
{'1',minutes}, 
{'2',mintes}, 
{'3',mintes}, 
{'5',mintes}, 
{'10',mintes}, 
{'15',mintes}, 
{'20',mintes}, 
{'30',mintes}, 
{'40',mintes}, 
{'1',hours}, 
{'2',hours}, 
{'3',hours} 
} 
-- 
local screenW, screenH = guiGetScreenSize() 
            wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) 
            guiWindowSetSizable(wnd, false) 
            guiSetVisible(wnd ,false) 
            GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") 
            GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") 
            GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) 
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") 
            GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) 
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") 
            GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) 
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") 
            GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) 
            GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) 
            GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) 
            GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) 
            GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) 
            guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") 
            grid = guiCreateGridList(9, 24, 222, 206, false, wnd) 
            guiGridListAddColumn(grid, "Time", 0.9)     
      
            wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) 
            guiWindowSetSizable(wnd2, false) 
            guiSetVisible(wnd2 ,false) 
            GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) 
            GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) 
            GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
            GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")     
      
    
      
    function Strong ( ) 
    guiSetVisible ( wnd,true ) 
    showCursor ( true ) -- اظهار الماوس 
    end 
    addCommandHandler ( "Teams",Strong ) 
      
      
      
    addEventHandler("onClientGUIClick",resourceRoot, 
        function ( ) 
            if ( source == GUIEditor.button[2] ) then 
                guiSetVisible(wnd2,false) 
                showCursor(false) 
                 elseif ( source == GUIEditor.button[3] ) then 
                    guiSetVisible(wnd,false) 
                    guiSetVisible(wnd2,true) 
            end 
        end 
     ) 
  
  
     addEventHandler("onClientGUIClick",resourceRoot, 
        function ( ) 
          if ( source == GUIEditor.button[5] ) then 
                guiSetVisible(wnd,false) 
                showCursor(false) 
end 
end) 
  
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1], Row, 1, v[1], false, false) 
    guiGridListSetItemText(GUIEditor.gridlist[1], Row, 2, v[2], false, false) 
end 
  

ما يظهر الجدول في القريد لست

الحاجات الكتبها

لأنك حاط متغيرات بالجدول و مو معرفهم

عرف المتغيرات اول

Link to comment

عدلت

  
   GUIEditor = { 
        checkbox = {}, 
        button = {}, 
        gridlist = {}, 
        edit = {}, 
        label = {} 
    } 
------ 
  
ranks = { 
{'1',minutes}, 
{'2',mintes}, 
{'3',mintes}, 
{'5',mintes}, 
{'10',mintes}, 
{'15',mintes}, 
{'20',mintes}, 
{'30',mintes}, 
{'40',mintes}, 
{'1',hours}, 
{'2',hours}, 
{'3',hours} 
} 
-- 
local screenW, screenH = guiGetScreenSize() 
            wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) 
            guiWindowSetSizable(wnd, false) 
            guiSetVisible(wnd ,false) 
            GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") 
            GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") 
            GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) 
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") 
            GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) 
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") 
            GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) 
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") 
            GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) 
            GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) 
            GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) 
            GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) 
            GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) 
            guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") 
            grid = guiCreateGridList(9, 24, 222, 206, false, wnd) 
            guiGridListAddColumn(grid, "Time", 0.9)     
      
            wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) 
            guiWindowSetSizable(wnd2, false) 
            guiSetVisible(wnd2 ,false) 
            GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) 
            GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) 
            GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
            GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")     
      
    
      
    function Strong ( ) 
    guiSetVisible ( wnd,true ) 
    showCursor ( true ) -- اظهار الماوس 
    end 
    addCommandHandler ( "Teams",Strong ) 
      
      
      
    addEventHandler("onClientGUIClick",resourceRoot, 
        function ( ) 
            if ( source == GUIEditor.button[2] ) then 
                guiSetVisible(wnd2,false) 
                showCursor(false) 
                 elseif ( source == GUIEditor.button[3] ) then 
                    guiSetVisible(wnd,false) 
                    guiSetVisible(wnd2,true) 
            end 
        end 
     ) 
  
  
     addEventHandler("onClientGUIClick",resourceRoot, 
        function ( ) 
          if ( source == GUIEditor.button[5] ) then 
                guiSetVisible(wnd,false) 
                showCursor(false) 
end 
end) 
  
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1], Row, 1, v[1], false, false) 
    guiGridListSetItemText(GUIEditor.gridlist[1], Row, 2, v[2], false, false) 
end 
  

Link to comment

      
       GUIEditor = { 
            checkbox = {}, 
            button = {}, 
            gridlist = {}, 
            edit = {}, 
            label = {} 
        } 
    ------ 
      
    ranks = { 
    {'1','minutes'}, 
    {'2','mintes'}, 
    {'3','mintes'}, 
    {'5','mintes'}, 
    {'10','mintes'}, 
    {'15','mintes'}, 
    {'20','mintes'}, 
    {'30','mintes'}, 
    {'40','mintes'}, 
    {'1','hours'}, 
    {'2','hours'}, 
    {'3','hours'} 
    } 
    -- 
    local screenW, screenH = guiGetScreenSize() 
wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd ,false) 
GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") 
GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") 
GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) 
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") 
GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) 
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") 
GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) 
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") 
GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) 
GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) 
GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) 
GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) 
GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) 
guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") 
grid = guiCreateGridList(9, 24, 222, 206, false, wnd) 
guiGridListAddColumn(grid, "ID", 0.3)     
guiGridListAddColumn(grid, "Time", 0.3)     
for _, v in ipairs (ranks) do 
local Row = guiGridListAddRow(grid) 
guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
end 
wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) 
guiWindowSetSizable(wnd2, false) 
guiSetVisible(wnd2 ,false) 
GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) 
GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) 
GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")     
          
        
          
        function Strong ( ) 
        guiSetVisible ( wnd,true ) 
        showCursor ( true ) -- اظهار الماوس 
        end 
        addCommandHandler ( "Teams",Strong ) 
          
          
          
        addEventHandler("onClientGUIClick",resourceRoot, 
            function ( ) 
                if ( source == GUIEditor.button[2] ) then 
                    guiSetVisible(wnd2,false) 
                    showCursor(false) 
                     elseif ( source == GUIEditor.button[3] ) then 
                        guiSetVisible(wnd,false) 
                        guiSetVisible(wnd2,true) 
                end 
            end 
         ) 
      
      
         addEventHandler("onClientGUIClick",resourceRoot, 
            function ( ) 
              if ( source == GUIEditor.button[5] ) then 
                    guiSetVisible(wnd,false) 
                    showCursor(false) 
    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...