Jump to content

فنكشنات ..


Recommended Posts

Weather1 = { 
1 = { مشمس , 3 } , 
2 = { غائم , 9 } , 
3 = { ضباب , 8 }  
} 
Weather2 = {  
1 = { 12:00 } 
2 = { 3:00 } 
3 = { 9:00 } 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(608, 234, 660, 588, "# - الطقس ", false) 
        centerTheGUI( GUIEditor.window[1] ) 
        setBindKeyWindowShow ( GUIEditor.window[1], "f2" ) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.gridlist[1] = guiCreateGridList(25, 30, 214, 264, false, GUIEditor.window[1])    
        GUIEditor.gridlist[2] = guiCreateGridList(440, 30, 214, 264, false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(177, 445, 295, 101, "# - Set", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        GUIEditor.label[1] = guiCreateLabel(299, 24, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        GUIEditor.label[2] = guiCreateLabel(299, 82, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) 
        GUIEditor.label[3] = guiCreateLabel(299, 140, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[3], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) 
        GUIEditor.label[4] = guiCreateLabel(299, 198, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[4], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false)     
    end 
) 
  
function Grid () 
    if soruce = GUIEditor.button[1] then 
        local Weather = GUIEditor.gridlist[1] 
        local Weather2 = GUIEditor.gridlist[2] 
        local column = guiGridListAddColumn ( GUIEditor.gridlist[1] , الطقوس , 1.00 )  
        local column2 = guiGridListAddColumn ( GUIEditor.gridlist[2] , الاوقات , 1,00 ) 
        if ( column ) then -- If the column was successfully created 
        if ( column2 ) then 
                for v,mk in ipairs(Weather1) do 
                for v,mk in ipairs(Weather2) do              
                --Loop through all the players, adding them to the table 
                        local row = guiGridListAddRow ( Weather ) 
                        local row2 = guiGridListAddRow ( Weather2 ) 
                        guiGridListSetItemText ( Weather, row, column, SetWeather ( Weather1 ), false, false ) 
                        guiGridListSetItemText ( Weather2, row2, column2, SetTime ( Weather2 ), false, false ) 
                        guiGridListSetItemData ( Weather, row, column, SetWeather(Weather1)) 
                        guiGridListSetItemData ( Weather2, row2, column2, SetTime(Weather2)) 
                    end 
                end 
            end 
        end 
    end 
end 
addEventHandler ( "onClientGUIClick", source, Grid ) 
  
local sx, sy = guiGetScreenSize() 
function centerTheGUI( guiElement ) 
    local width, height = guiGetSize( guiElement, false ) 
    local x, y = sx / 2 - width / 2, sy / 2 - height / 2 
    guiSetPosition( guiElement, x, y, false ) 
end 
  
setBindKeyWindowShow = function ( guiWindow, key ) 
    if guiWindow and key then 
        if getElementType ( guiWindow ) == "gui-window" then 
            guiSetVisible ( guiWindow, false ); 
            local setBindKey_ = function ( key ) 
                guiSetVisible ( guiWindow, not guiGetVisible ( guiWindow ) ); 
                showCursor ( guiGetVisible ( guiWindow ) ); 
            end 
            return bindKey ( key, "down", setBindKey_ ); 
        else 
            return false; 
        end 
    else 
        return false; 
    end 
end 

فيهه مشككلةة

وشش ههي ؟

اولا مايفتح

Link to comment

الجدول مو مرتبها + مو ضايف ,

و بتصير مشاكل ,

و كمان مو ضايف ""

و كذا راح يقولك غلط لنك ما خليته نص ,

و ضايف اشياء مالها داعي

التصحيح

Weather1 ={ 
    {"مشمس", 0}, 
    {"غائم", 54}, 
    {"ضباب", 55}, 
} 
  
Weather2 ={ 
    {"12:00", 12}, 
    {"3:00", 03}, 
    {"9:00", 09}, 
} 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {} 
} 
  
        GUIEditor.window[1] = guiCreateWindow(608, 234, 660, 588, "# - الطقس ", false) 
        centerTheGUI( GUIEditor.window[1] ) 
        setBindKeyWindowShow ( GUIEditor.window[1], "f2" ) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.gridlist[1] = guiCreateGridList(25, 30, 214, 264, false, GUIEditor.window[1])   
        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "# الطقس ", 0.6) 
        GUIEditor.gridlist[2] = guiCreateGridList(440, 30, 214, 264, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "#", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[2] "# الوقت ", 0.6) 
        GUIEditor.button[1] = guiCreateButton(177, 445, 295, 101, "# - Set", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        GUIEditor.label[1] = guiCreateLabel(299, 24, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        GUIEditor.label[2] = guiCreateLabel(299, 82, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) 
        GUIEditor.label[3] = guiCreateLabel(299, 140, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[3], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) 
        GUIEditor.label[4] = guiCreateLabel(299, 198, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[4], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false)     
  
  
 for v,mk in ipairs(Weather1) do 
 local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) 
 guiGridListSetItemText(GUIEditor.gridlist[1],row,1,"" .. v .. "",false,false) 
 guiGridListSetItemText(  GUIEditor.gridlist[1], row,2,mk[1],false,false) 
 guiGridListSetItemData ( GUIEditor.gridlist[1], row, 2,mk[2] ) 
 end 
 for v,mk in ipairs(Weather2) do 
local row = guiGridListAddRow ( GUIEditor.gridlist[2] ) 
 guiGridListSetItemText(GUIEditor.gridlist[2],row,1,"" .. v .. "",false,false) 
 guiGridListSetItemText(  GUIEditor.gridlist[2], row,2,mk[1],false,false) 
 guiGridListSetItemData ( GUIEditor.gridlist[2], row, 2,mk[2] ) 
 end 
  
  
  
setBindKeyWindowShow = function ( guiWindow, key ) 
    if guiWindow and key then 
        if getElementType ( guiWindow ) == "gui-window" then 
            guiSetVisible ( guiWindow, false ); 
            local setBindKey_ = function ( key ) 
                guiSetVisible ( guiWindow, not guiGetVisible ( guiWindow ) ); 
                showCursor ( guiGetVisible ( guiWindow ) ); 
            end 
            return bindKey ( key, "down", setBindKey_ ); 
        else 
            return false; 
        end 
    else 
        return false; 
    end 
end 

Edited by Guest
Link to comment

نفس المشكلةة :/

تجيني الشاشةة .

في وجهي كك ؟

ويقولي الدي بق:

ERROR: Weather\client:24: attempt to index field 'gridlist' ( a nil value )

+

local alzr = 'F2' 
  
Weather1 ={ 
    {"مشمس", 0}, 
    {"غائم", 54}, 
    {"ضباب", 55}, 
} 
  
Weather2 ={ 
    {"12:00", 12}, 
    {"3:00", 03}, 
    {"9:00", 09}, 
} 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {} 
} 
  
        GUIEditor.window[1] = guiCreateWindow(608, 234, 660, 588, "# - الطقس ", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.gridlist[1] = guiCreateGridList(25, 30, 214, 264, false, GUIEditor.window[1])   
        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "# الطقس ", 0.6) 
        GUIEditor.gridlist[2] = guiCreateGridList(440, 30, 214, 264, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "#", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[2] "# الوقت ", 0.6) 
        GUIEditor.button[1] = guiCreateButton(177, 445, 295, 101, "# - Set", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        GUIEditor.label[1] = guiCreateLabel(299, 24, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        GUIEditor.label[2] = guiCreateLabel(299, 82, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) 
        GUIEditor.label[3] = guiCreateLabel(299, 140, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[3], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) 
        GUIEditor.label[4] = guiCreateLabel(299, 198, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[4], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false)     
  
  
 for v,mk in ipairs(Weather1) do 
 local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) 
 guiGridListSetItemText(GUIEditor.gridlist[1],row,1,"" .. v .. "",false,false) 
 guiGridListSetItemText(  GUIEditor.gridlist[1], row,2,mk[1],false,false) 
 guiGridListSetItemData ( GUIEditor.gridlist[1], row, 2,mk[2] ) 
 end 
 for v,mk in ipairs(Weather2) do 
 local row = guiGridListAddRow ( GUIEditor.gridlist[2] ) 
 guiGridListSetItemText(GUIEditor.gridlist[2],row,1,"" .. v .. "",false,false) 
 guiGridListSetItemText(  GUIEditor.gridlist[2], row,2,mk[1],false,false) 
 guiGridListSetItemData ( GUIEditor.gridlist[2], row, 2,mk[2] ) 
 end 
  
  
  
bindKey (alzr,'down', 
function () 
guiSetVisible (GUIEditor.window[1],not guiGetVisible (GUIEditor.window[1])) 
showCursor (guiGetVisible (GUIEditor.window[1])) 
end) 

Link to comment

الدي بق ""

ERROR:Weather\client.lua:30: attempt to call field '?' (a user data value)

#اصحاب_ الثنيان

لكل مشكلة حل

  
local alzr = 'F2' 
  
Weather1 ={ 
    {"مشمس", 0}, 
    {"غائم", 54}, 
    {"ضباب", 55}, 
} 
  
Weather2 ={ 
    {"12:00", 12}, 
    {"3:00", 03}, 
    {"9:00", 09}, 
} 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    gridlist = {} 
} 
  
        GUIEditor.window[1] = guiCreateWindow(608, 234, 660, 588, "# - الطقس ", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.gridlist[1] = guiCreateGridList(25, 30, 214, 264, false, GUIEditor.window[1])   
        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "# Weather ", 0.6) 
        GUIEditor.gridlist[2] = guiCreateGridList(440, 30, 214, 264, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "#", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[2] "# Time ", 0.6) 
        GUIEditor.button[1] = guiCreateButton(177, 445, 295, 101, "# - Set", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        GUIEditor.label[1] = guiCreateLabel(299, 24, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        GUIEditor.label[2] = guiCreateLabel(299, 82, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) 
        GUIEditor.label[3] = guiCreateLabel(299, 140, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[3], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) 
        GUIEditor.label[4] = guiCreateLabel(299, 198, 61, 58, "*", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[4], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false)     
  
  
 for v,mk in ipairs(Weather1) do 
 local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) 
 guiGridListSetItemText(GUIEditor.gridlist[1],row,1,"" .. v .. "",false,false) 
 guiGridListSetItemText(  GUIEditor.gridlist[1], row,2,mk[1],false,false) 
 guiGridListSetItemData ( GUIEditor.gridlist[1], row, 2,mk[2] ) 
 end 
 for v,mk in ipairs(Weather2) do 
 local row = guiGridListAddRow ( GUIEditor.gridlist[2] ) 
 guiGridListSetItemText(GUIEditor.gridlist[2],row,1,"" .. v .. "",false,false) 
 guiGridListSetItemText(  GUIEditor.gridlist[2], row,2,mk[1],false,false) 
 guiGridListSetItemData ( GUIEditor.gridlist[2], row, 2,mk[2] ) 
 end 
  
  
  
bindKey (alzr,'down', 
function () 
guiSetVisible (GUIEditor.window[1],not guiGetVisible (GUIEditor.window[1])) 
showCursor (guiGetVisible (GUIEditor.window[1])) 
end) 

Link to comment

السلام عليكم اليوم عملت لوحه

وما تفتخ

وعامل كل شي .

كلنت

local alzr = 'm' 
  
  
-- 
GUIEditor = { 
    gridlist = {}, 
    button = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") 
        GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") 
        GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") 
        GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") 
        GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) 
        guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)     
    end 
) 
-- 
  
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
  
Link to comment
السلام عليكم اليوم عملت لوحه

وما تفتخ

وعامل كل شي .

كلنت

local alzr = 'm' 
  
  
-- 
GUIEditor = { 
    gridlist = {}, 
    button = {}, 
    label = {} 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") 
        GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") 
        GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") 
        GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") 
        GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) 
        guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)     
    end 
) 
-- 
  
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
  

اكيد ما تفتح لنك مو ضايف الزر في الوضيفة نفسها

يا خي لا تستخدمون وضايف للوحة

  
  
 local alzr = 'm' 
  
  
-- 
GUIEditor = { 
    window = {}, 
    gridlist = {}, 
    button = {}, 
    label = {} 
} 
  
  
        wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") 
        GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") 
        GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") 
        GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") 
        GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) 
        guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)     
  
-- 
  
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  

Edited by Guest
Link to comment
السلام عليكم اليوم عملت لوحه

وما تفتخ

وعامل كل شي .

كلنت

local alzr = 'm' 
  
  
-- 
GUIEditor = { 
    gridlist = {}, 
    button = {}, 
    label = {} 
} 
  
        wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") 
        GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") 
        GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") 
        GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") 
        GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) 
        guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)     
-- 
  
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
  

التصحيح

local alzr = 'm' 
  
  
-- 
GUIEditor = { 
    window = {}, 
    gridlist = {}, 
    button = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") 
        GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") 
        GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") 
        GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") 
        GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) 
        guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)     
    end 
) 
-- 
  
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
  

Edited by Guest
Link to comment
السلام عليكم اليوم عملت لوحه

وما تفتخ

وعامل كل شي .

كلنت

local alzr = 'm' 
  
  
-- 
GUIEditor = { 
    gridlist = {}, 
    button = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") 
        GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") 
        GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") 
        GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") 
        GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) 
        guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)     
    end 
) 
-- 
  
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
  

التصحيح

local alzr = 'm' 
  
  
-- 
GUIEditor = { 
    window = {}, 
    gridlist = {}, 
    button = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") 
        GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") 
        GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") 
        GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") 
        GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) 
        guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9)     
    end 
) 
-- 
  
bindKey (alzr,'down', 
function () 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
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...