Jump to content

مساعدة


#Major .

Recommended Posts

السلام علييكم
انا عندي لوحة قريد ليست
ابي اضيف عليها راو م قدرت
هذا الكود
 

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
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 by #x1AhMeD,-09
Link to comment
6 minutes ago, #x1AhMeD,-09 said:

الكود حقك صح و الكود حقي صح برضو

تاكد انت ضايف الكود بعد كود عمل الجريد ليست

و تاكد من ان اسم الجريد ليست 

Grid

متأكد بس م زبطت مدري ليه

Link to comment
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 by *RayaN-Alharbi.
Link to comment
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
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

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...