#Major . Posted December 10, 2017 Share Posted December 10, 2017 السلام علييكم انا عندي لوحة قريد ليست ابي اضيف عليها راو م قدرت هذا الكود THELP = { {"1"}, {"2"}, {"2"}, {"3"}, {"4"} } for _,s in ipairs( THELP ) do local RowG = guiGridListAddRow(Grid) guiGridListSetItemText(Grid,RowG,1,s[1],false,false) end Link to comment
SycroX Posted December 10, 2017 Share Posted December 10, 2017 (edited) 30 minutes ago, *RayaN-Alharbi. said: السلام علييكم انا عندي لوحة قريد ليست ابي اضيف عليها راو م قدرت هذا الكود THELP = { {"1"}, {"2"}, {"2"}, {"3"}, {"4"} } for _,s in ipairs( THELP ) do local RowG = guiGridListAddRow(Grid) guiGridListSetItemText(Grid,RowG,1,s[1],false,false) end THELP = { "1", "2", "2", "3", "4" } for _,s in ipairs( THELP ) do local RowG = guiGridListAddRow(Grid) guiGridListSetItemText(Grid,RowG,1,s,false,false) end Edited December 10, 2017 by #x1AhMeD,-09 Link to comment
#Major . Posted December 10, 2017 Author Share Posted December 10, 2017 4 minutes ago, #x1AhMeD,-09 said: THELP = { "1", "2", "2", "3", "4" } for _,s in ipairs( THELP ) do local RowG = guiGridListAddRow(Grid) guiGridListSetItemText(Grid,RowG,1,s,false,false) end م زبط Link to comment
SycroX Posted December 10, 2017 Share Posted December 10, 2017 الكود حقك صح و الكود حقي صح برضو تاكد انت ضايف الكود بعد كود عمل الجريد ليست و تاكد من ان اسم الجريد ليست Grid Link to comment
#Major . Posted December 10, 2017 Author Share Posted December 10, 2017 6 minutes ago, #x1AhMeD,-09 said: الكود حقك صح و الكود حقي صح برضو تاكد انت ضايف الكود بعد كود عمل الجريد ليست و تاكد من ان اسم الجريد ليست Grid متأكد بس م زبطت مدري ليه Link to comment
#Major . Posted December 10, 2017 Author Share Posted December 10, 2017 (edited) THELP = { "1", "2", "2", "3", "4" } local Font = guiCreateFont("Font.ttf",15) local Font1 = guiCreateFont("Font.ttf",12) local Font2 = guiCreateFont("Font.ttf",17) -- UseFull Function addEventHandler("onClientResourceStart", resourceRoot, function() Help = guiCreateWindow(0.38, 0.21, 0.25, 0.58, ".:[لوحة المساعدة]:.", true) guiWindowSetSizable(Help, false) guiSetVisible(Help,false) Grid = guiCreateGridList(0.03, 0.05, 0.94, 0.90, true, Help) guiGridListAddColumn(Grid, ".:[ # اختر ]:.", 0.9) end ) bindKey("x", "down" , function () if ( guiGetVisible(Help) == false ) then guiSetVisible(Help,true) showCursor(true) else guiSetVisible(Help,false) showCursor(false) end end ) for _,s in ipairs( THELP ) do local RowG = guiGridListAddRow(Grid) guiGridListSetItemText(Grid,RowG,1,s,false,false) end Edited December 10, 2017 by *RayaN-Alharbi. Link to comment
SycroX Posted December 10, 2017 Share Posted December 10, 2017 local Font = guiCreateFont("Font.ttf",15) local Font1 = guiCreateFont("Font.ttf",12) local Font2 = guiCreateFont("Font.ttf",17) ------------------------------------------ Table = { {"1"}, {"2"}, {"2"}, {"3"}, {"4"} } addEventHandler("onClientResourceStart", resourceRoot, function() Help = guiCreateWindow(0.38, 0.21, 0.25, 0.58, ".:[لوحة المساعدة]:.", true) guiWindowSetSizable(Help, false) guiSetVisible(Help,false) Grid = guiCreateGridList(0.03, 0.05, 0.94, 0.90, true, Help) guiGridListAddColumn(Grid, ".:[ # اختر ]:.", 0.9) for _,value in ipairs(Table) do local row = guiGridListAddRow(Grid) guiGridListSetItemText(Grid, row, 1, value[1], false, false) end end ) bindKey("x", "down" , function () guiSetVisible(Help, not guiGetVisible(Help)) showCursor(guiGetVisible(Help)) end ) Link to comment
#Major . Posted December 10, 2017 Author Share Posted December 10, 2017 5 minutes ago, #x1AhMeD,-09 said: local Font = guiCreateFont("Font.ttf",15) local Font1 = guiCreateFont("Font.ttf",12) local Font2 = guiCreateFont("Font.ttf",17) ------------------------------------------ Table = { {"1"}, {"2"}, {"2"}, {"3"}, {"4"} } addEventHandler("onClientResourceStart", resourceRoot, function() Help = guiCreateWindow(0.38, 0.21, 0.25, 0.58, ".:[لوحة المساعدة]:.", true) guiWindowSetSizable(Help, false) guiSetVisible(Help,false) Grid = guiCreateGridList(0.03, 0.05, 0.94, 0.90, true, Help) guiGridListAddColumn(Grid, ".:[ # اختر ]:.", 0.9) for _,value in ipairs(Table) do local row = guiGridListAddRow(Grid) guiGridListSetItemText(Grid, row, 1, value[1], false, false) end end ) bindKey("x", "down" , function () guiSetVisible(Help, not guiGetVisible(Help)) showCursor(guiGetVisible(Help)) end ) احم شكرا انا نسيت اضيفها مع نفس الاكواد 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