Jump to content

مشكلة


Recommended Posts

GUIEditor = {
    gridlist = {},
    window = {},
	label = {}
}
		soon = guiCreateWindow(253, 226, 311, 128, "MO7trFeN Al6ArH", false)
        guiWindowSetSizable(soon, false)
        guiSetAlpha(soon, 1.00)
		guiSetVisible( soon, false ) 
        soonclose = guiCreateButton(92, 90, 131, 28, "OK", false, soon)
        guiSetProperty(soonclose, "NormalTextColour", "FFFF0000")
        GUIEditor.label[1] = guiCreateLabel(114, 40, 90, 21, "قـريــبــاً │ SOON", false, soon)
        guiLabelSetColor(GUIEditor.label[1], 0, 254, 233)
		
        GUIEditor.window[1] = guiCreateWindow(207, 112, 387, 387, "الإنتــقــالات", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)
		guiSetVisible(GUIEditor.window[1],false)
        GUIEditor.gridlist[1] = guiCreateGridList(9, 27, 368, 350, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "  الأماكن    #  ", 0.9)
		places1 = guiCreateGridList(9, 27, 368, 350, false, GUIEditor.window[1])
        guiGridListAddColumn(places1, "  الأماكن    #  ", 0.9)
        for i = 1, 10 do
            guiGridListAddRow(places1)
        end
		guiSetVisible(places1, false)
        guiGridListSetItemText(places1, 0, 1, "رجــوع >>  ", false, false)
        guiGridListSetItemColor(places1, 0, 1, 247, 245, 0, 255)
        guiGridListSetItemText(places1, 1, 1, "البــدايــة │ X   ", false, false)
        guiGridListSetItemColor(places1, 1, 1, 246, 0, 0, 255)
        guiGridListSetItemText(places1, 2, 1, "البــنـــك │ X   ", false, false)
        guiGridListSetItemColor(places1, 2, 1, 0, 244, 236, 255)
        guiGridListSetItemText(places1, 3, 1, "مركـــز الشــرطــة │ X   ", false, false)
        guiGridListSetItemColor(places1, 3, 1, 0, 5, 243, 255)
        guiGridListSetItemText(places1, 4, 1, "إســتــلام الرواتـــب │ X   ", false, false)
        guiGridListSetItemColor(places1, 4, 1, 11, 242, 0, 255)
        guiGridListSetItemText(places1, 5, 1, "الفــنــدق │ X   ", false, false)
        guiGridListSetItemColor(places1, 5, 1, 238, 241, 0, 255)
        guiGridListSetItemText(places1, 6, 1, "أفــخـم 3 بــيــوت │ X   ", false, false)
        guiGridListSetItemColor(places1, 6, 1, 238, 2, 235, 255)
        guiGridListSetItemText(places1, 7, 1, "الإســتــراحـــة │ X   ", false, false)
        guiGridListSetItemColor(places1, 7, 1, 125, 58, 181, 255)
        guiGridListSetItemText(places1, 8, 1, "القــفــزة الخـنفــشاريــة │ X   ", false, false)
        guiGridListSetItemColor(places1, 8, 1, 182, 115, 56, 255)
        guiGridListSetItemText(places1, 9, 1, "بــيــــوت المــطــانــــيـــخ │ X   ", false, false)
        guiGridListSetItemColor(places1, 9, 1, 193, 44, 44, 255)
		
bindKey ("f6", "down",
	function()
		if guiGetVisible (GUIEditor.window[1]) then
			guiSetVisible(GUIEditor.window[1],false)
			showCursor(false)
		else
			guiSetVisible(GUIEditor.window[1],true)
			showCursor(true)
		end
	end
)
local aTable = { 
	{ "  #####  " , 254, 245, 0, 255 } ,
	{ " الأماكن الرئيسيــة +  " , 19, 24, 234, 255 } ,
	{ "الوظــائــف +  " , 33, 234, 18, 255 } ,
	{ "المحــلات +  " , 219, 30, 221, 255 } ,
	{ "الشــوارع +  " , 254, 245, 0, 255 } ,
	{ "المهــمــات +  " , 41, 209, 183, 255 } ,
	{ "أخــرى +  " , 249, 0, 0, 255 } ,
	}
for _ ,v in ipairs ( aTable ) do 
	local sRow = guiGridListAddRow ( GUIEditor.gridlist[1] )
	guiGridListSetItemText ( GUIEditor.gridlist[1] , sRow , 1 , v [ 1 ] , false , false )
	guiGridListSetItemColor ( GUIEditor.gridlist[1] , sRow , 1 , v [ 2 ] , v [ 3 ] , v [ 4 ] , v [ 5 ] )
end
addEventHandler ("onClientGUIDoubleClick", resourceRoot,
    function (	)
	if (source == GUIEditor.gridlist[1]) then
	local pl = guiGridListGetItemText (GUIEditor.gridlist[1], guiGridListGetSelectedItem (GUIEditor.gridlist[1]), 1)
	if ( pl == aTable [ 2 ] [ 1 ] ) then
	
	guiSetVisible (GUIEditor.gridlist[1], false)
	
	guiSetVisible (places1, true)
	
	end
	elseif (source == places1) then
	
	local pl = guiGridListGetItemText (places1, guiGridListGetSelectedItem (places1), 1)
	
	if ( pl == "رجــوع >>  " ) then
	
	guiSetVisible (GUIEditor.gridlist[1], true)
	
	guiSetVisible (places1, false)
            end
        end
    end
	)

 

Link to comment
46 minutes ago, Abdul KariM said:

GUIEditor = {
    gridlist = {},
    window = {},
	label = {}
}
		soon = guiCreateWindow(253, 226, 311, 128, "MO7trFeN Al6ArH", false)
        guiWindowSetSizable(soon, false)
        guiSetAlpha(soon, 1.00)
		guiSetVisible( soon, false ) 
        soonclose = guiCreateButton(92, 90, 131, 28, "OK", false, soon)
        guiSetProperty(soonclose, "NormalTextColour", "FFFF0000")
        GUIEditor.label[1] = guiCreateLabel(114, 40, 90, 21, "قـريــبــاً │ SOON", false, soon)
        guiLabelSetColor(GUIEditor.label[1], 0, 254, 233)
		
        GUIEditor.window[1] = guiCreateWindow(207, 112, 387, 387, "الإنتــقــالات", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)
		guiSetVisible(GUIEditor.window[1],false)
        GUIEditor.gridlist[1] = guiCreateGridList(9, 27, 368, 350, false, GUIEditor.window[1])
        guiGridListAddColumn(GUIEditor.gridlist[1], "  الأماكن    #  ", 0.9)
		places1 = guiCreateGridList(9, 27, 368, 350, false, GUIEditor.window[1])
        guiGridListAddColumn(places1, "  الأماكن    #  ", 0.9)
        for i = 1, 10 do
            guiGridListAddRow(places1)
        end
		guiSetVisible(places1, false)
        guiGridListSetItemText(places1, 0, 1, "رجــوع >>  ", false, false)
        guiGridListSetItemColor(places1, 0, 1, 247, 245, 0, 255)
        guiGridListSetItemText(places1, 1, 1, "البــدايــة │ X   ", false, false)
        guiGridListSetItemColor(places1, 1, 1, 246, 0, 0, 255)
        guiGridListSetItemText(places1, 2, 1, "البــنـــك │ X   ", false, false)
        guiGridListSetItemColor(places1, 2, 1, 0, 244, 236, 255)
        guiGridListSetItemText(places1, 3, 1, "مركـــز الشــرطــة │ X   ", false, false)
        guiGridListSetItemColor(places1, 3, 1, 0, 5, 243, 255)
        guiGridListSetItemText(places1, 4, 1, "إســتــلام الرواتـــب │ X   ", false, false)
        guiGridListSetItemColor(places1, 4, 1, 11, 242, 0, 255)
        guiGridListSetItemText(places1, 5, 1, "الفــنــدق │ X   ", false, false)
        guiGridListSetItemColor(places1, 5, 1, 238, 241, 0, 255)
        guiGridListSetItemText(places1, 6, 1, "أفــخـم 3 بــيــوت │ X   ", false, false)
        guiGridListSetItemColor(places1, 6, 1, 238, 2, 235, 255)
        guiGridListSetItemText(places1, 7, 1, "الإســتــراحـــة │ X   ", false, false)
        guiGridListSetItemColor(places1, 7, 1, 125, 58, 181, 255)
        guiGridListSetItemText(places1, 8, 1, "القــفــزة الخـنفــشاريــة │ X   ", false, false)
        guiGridListSetItemColor(places1, 8, 1, 182, 115, 56, 255)
        guiGridListSetItemText(places1, 9, 1, "بــيــــوت المــطــانــــيـــخ │ X   ", false, false)
        guiGridListSetItemColor(places1, 9, 1, 193, 44, 44, 255)
		
bindKey ("f6", "down",
	function()
		if guiGetVisible (GUIEditor.window[1]) then
			guiSetVisible(GUIEditor.window[1],false)
			showCursor(false)
		else
			guiSetVisible(GUIEditor.window[1],true)
			showCursor(true)
		end
	end
)
local aTable = { 
	{ "  #####  " , 254, 245, 0, 255 } ,
	{ " الأماكن الرئيسيــة +  " , 19, 24, 234, 255 } ,
	{ "الوظــائــف +  " , 33, 234, 18, 255 } ,
	{ "المحــلات +  " , 219, 30, 221, 255 } ,
	{ "الشــوارع +  " , 254, 245, 0, 255 } ,
	{ "المهــمــات +  " , 41, 209, 183, 255 } ,
	{ "أخــرى +  " , 249, 0, 0, 255 } ,
	}
for _ ,v in ipairs ( aTable ) do 
	local sRow = guiGridListAddRow ( GUIEditor.gridlist[1] )
	guiGridListSetItemText ( GUIEditor.gridlist[1] , sRow , 1 , v [ 1 ] , false , false )
	guiGridListSetItemColor ( GUIEditor.gridlist[1] , sRow , 1 , v [ 2 ] , v [ 3 ] , v [ 4 ] , v [ 5 ] )
end
addEventHandler ("onClientGUIDoubleClick", resourceRoot,
    function (	)
	if (source == GUIEditor.gridlist[1]) then
	local pl = guiGridListGetItemText (GUIEditor.gridlist[1], guiGridListGetSelectedItem (GUIEditor.gridlist[1]), 1)
	if ( pl == aTable [ 2 ] [ 1 ] ) then
	
	guiSetVisible (GUIEditor.gridlist[1], false)
	
	guiSetVisible (places1, true)
	
	end
	elseif (source == places1) then
	
	local pl = guiGridListGetItemText (places1, guiGridListGetSelectedItem (places1), 1)
	
	if ( pl == "رجــوع >>  " ) then
	
	guiSetVisible (GUIEditor.gridlist[1], true)
	
	guiSetVisible (places1, false)
            end
        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...