هذي الاكواد صحيحه ؟؟؟
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)
for i = 1, 7 do
guiGridListAddRow(GUIEditor.gridlist[1])
end
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, " ##### ", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 254, 245, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, " الأماكن الرئيسيــة + ", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 1, 1, 19, 24, 234, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "الوظــائــف + ", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 2, 1, 33, 234, 18, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "المحــلات + ", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 3, 1, 219, 30, 221, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "الشــوارع + ", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 4, 1, 41, 209, 183, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "المهــمــات + ", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 5, 1, 190, 58, 83, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "أخــرى + ", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 6, 1, 249, 0, 0, 255)
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
)