PleaseSelect = {
{"ساحة القتال الاول",273.73892211914, 1990.8371582031, 17.640625 },
{"ساحة القتال الثاني",1611.3591308594, 754.52416992188, 10.87656211853 },
{"حرب السكاكين",-415.7585144043, -634.93737792969, 11.637937545776 },
{"الستراحه",-724.26849365234, 971.14849853516, 12.31086063385 },
{"محل بيع الاسلحه",1348.0174560547, -1279.7244873047, 13.3828125 },
{"البنك الرئيسي",1480.1080322266, -1738.6528320313, 13.546875 },
{"النخيل",2121.5476074219, 1390.9613037109, 10.812517166138 },
{"الدائري",1686.3471679688, 1396.9626464844, 10.74236869812 },
{"الفندق",-1755.3333740234, 949.79974365234, 24.7421875 },
{"مهمة سرقة البنك",591.33178710938, -1238.0036621094, 17.89847946167 },
{"ساحة التفجير",-2087.2016601563, -125.29878234863, 35.327392578125 },
{"ساحة الدرفت",1002.9132080078, -2323.3430175781, 13.095125198364 },
{"ساحة الرفع",2849.1574707031, -1754.2189941406, 11.046875 },
{"المجمع السكني1",2602.2561035156, 1779.1556396484, 10.8203125 },
{"المجمع السكني2",-1687.9128417969, 1356.2553710938, 7.1721897125244 },
{"الـغـروب",635.01287841797, 1696.4790039063, 6.9921875 },
{"الـمـطـآر الاول",-1022.7536621094, 471.78393554688, 14.346378326416 },
{"الـمـطـآر الـثـآني",1470.1495361328, 1172.9645996094, 13.132493019104 },
{"الـمـطـآر الـثـآلـث",-1367.5183105469, -90.866271972656, 14.1484375 },
}
--[[-------------------------------------------------
Notes:
> This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running.
To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there.
--]]-------------------------------------------------
GUIEditor = {
gridlist = {},
staticimage = {},
button = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.button[1] = guiCreateButton(649, 613, 120, 33, "", false)
guiSetAlpha(GUIEditor.button[1], 0.00)
GUIEditor.label[1] = guiCreateLabel(687, 617, 159, 40, "انتقل", false)
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 249, 230, 13)
GUIEditor.staticimage[1] = guiCreateStaticImage(515, 151, 417, 462, "dot_white.png", false)
guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FEE7E6E7 tr:FEE7E6E7 bl:FEE7E6E7 br:FEE7E6E7")
GUIEditor.gridlist[1] = guiCreateGridList((417 - 402) / 2, (462 - 425) / 2, 402, 425, false, GUIEditor.staticimage[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Please Select", 0.9)
GUIEditor.staticimage[2] = guiCreateStaticImage(514, 118, 418, 33, ":gggg/images/dot_white.png", false)
guiSetProperty(GUIEditor.staticimage[2], "ImageColours", "tl:FEDFF303 tr:FEDFF303 bl:FEDFF303 br:FEDFF303")
GUIEditor.label[2] = guiCreateLabel(75, 0, 250, 33, "Mr.sA~~eF~~", false, GUIEditor.staticimage[2])
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 167, 0, 0)
guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[2], "center")
GUIEditor.staticimage[3] = guiCreateStaticImage(514, 613, 418, 33, "dot_white.png", false)
guiSetProperty(GUIEditor.staticimage[3], "ImageColours", "tl:FEE7E6E7 tr:FEE7E6E7 bl:FEE7E6E7 br:FEE7E6E7")
GUIEditor.label[3] = guiCreateLabel(49, -490, 306, 23, "SeRveR", false, GUIEditor.staticimage[3])
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 167, 0, 0)
GUIEditor.staticimage[4] = guiCreateStaticImage(482, -98, 128, 54, "dot_white.png", false, GUIEditor.staticimage[3])
GUIEditor.staticimage[5] = guiCreateStaticImage(649, 617, 117, 25, "dot_white.png", false)
guiSetProperty(GUIEditor.staticimage[5], "ImageColours", "tl:FEDD0000 tr:FEDD0000 bl:FEDD0000 br:FEDD0000")
GUIEditor.button[2] = guiCreateButton(-244, -8, 16, 19, "", false, GUIEditor.staticimage[5])
GUIEditor.staticimage[6] = guiCreateStaticImage(630, 601, 162, 41, "dot_white.png", false)
guiSetProperty(GUIEditor.staticimage[6], "ImageColours", "tl:FEDD0000 tr:FEDD0000 bl:FEDD0000 br:FEDD0000")
restartGRID ( )
end
)
function restartGRID ( )
for i,mk in ipairs(PleaseSelect) do
local row = guiGridListAddRow(GUIEditor.gridlist[1])
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,mk[1],false,false)
guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{tonumber (mk[2]),tonumber (mk[3]),tonumber (mk[4])})
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255))
end
end
addEventHandler("onClientGUIClick",root,
function ()
if source == GUIEditor.button[1] then
local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
if sel ~= -1 then
local x,y,z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1],sel,1))
setElementPosition(localPlayer,x,y,z)
guiSetVisible (GUIEditor.staticimage[1], false )
showCursor(false)
guiSetInputEnabled(false)
else
outputChatBox("* You Must Select Place First | يجب تحديد ألمكان اولآ",255,100,100,true)
end
end
end
)
bindKey('F6','down', function ( )
guiSetVisible (GUIEditor.staticimage[1], not guiGetVisible (GUIEditor.staticimage[1]))
showCursor (guiGetVisible (GUIEditor.staticimage[1]))
end)