جرب
GUIEditor = {
gridlist = {},
window = {},
button = {}
}
GUIEditor.window[1] = guiCreateWindow(527, 216, 328, 369, "[ G.N | Werp # الانتقالات | G.N ]", false)
guiSetVisible(GUIEditor.window[1], false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00E9FD")
GUIEditor.button[1] = guiCreateButton(99, 326, 131, 33, "[ werp | إنتقال ]", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFBFE00")
GUIEditor.gridlist[1] = guiCreateGridList(32, 28, 261, 288, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Werp #", 0.9)
MKAN = {
{"آسـتـرآحـة آلـجنوون",2335.490234375,-1658.9318847656,13.37931060791},
{"موقف الباصات",1790.2674560547,-1912.0159912109 , 13.396838188171},
{"سـفـيـنـة",-2520.77734375,1545.1779785156,17.328125},
{"آلـمـسـبـح",2295.2536621094,659.69207763672,10.8203125},
{"جسر المعلق",-2674.5361328125,1221.0744628906,55.4296875},
{"الفنادق",-1739.0821533203, 940.56231689453, 24.7421875},
{"الـمـعـرض",-1656.5615234375,1213.548828125,7.25},
{"المـطآر الاول",1409.7137451172,-2509.9780273438,13.5546875},
{"المـطآر الثآني",-1503.4846191406,-131.5910949707,14.1484375},
{"حي السكاني آلآول",1573.5174560547,713.45556640625,10.822286605835},
{"حي السكاني آلثآني",-1682.8609619141,1365.5950927734,7.1721897125244},
{"حي السكاني آلثآلث",2866.7397460938,-1958.3475341797,11.109375},
{"قصور الشيوخ 1",959.62994384766,-641.74029541016,121.31896209717},
{"قصور الشيوخ 2",-2400.1049804688,335.70724487305,35.171875,},
{"قصر الشيخ شادو",1170.6643066406,-2035.2841796875,69.0078125},
{"الشارع الطويل",-3037.3972167969,-3193.962890625,2.0999999046326},
{"شارع البستان",2491.12109375, -1667.4482421875, 13.34375},
{"السد الكبير",-887.02734375, 2000.9217529297, 60.654315948486},
{"الـدآئـري",1686.5134277344,1400.2590332031,10.748929977417},
{"الـنـخـيـل",2126.0661621094,1409.3852539063,10.8203125},
{"شارع الفروسيه",2878.1115722656, -1110.029296875, 10.882762908936},
{"شارع الغروب",662.55310058594, 1936.7479248047, 5.5052728652954},
{"طـعـس",1054.4178466797,2816.0053710938,13.025714874268},
{"ساحه التفجير",-2051.4926757813, -173.29304504395, 35.3203125},
{"سرقة البنك",596.84881591797, -1240.9123535156, 18.089265823364},
{"آلـبـنـكـ",1013.4171142578,-935.34442138672,42.1796875},
}
for i,mk in ipairs(MKAN) do
local row = guiGridListAddRow(GUIEditor.gridlist[1])
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,mk[1],false,false)
guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{mk[2],mk[3],mk[4]})
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255))
end
addEventHandler("onClientGUIClick", GUIEditor.button[1],
function()
local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
if sel ~= -1 then
local x, y, z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1], sel, 1))
outputChatBox("# Warped.", 54, 151, 224)
fadeCamera(false)
setTimer(fadeCamera, 1500, 1, true)
setTimer(setElementPosition, 1200, 1, localPlayer, x, y, z)
end
end, false)
bindKey("F6", "down",
function()
if not guiGetVisible(GUIEditor.window[1]) then
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
else
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
end)