DaminkO Posted July 27, 2016 Share Posted July 27, 2016 local screenW, screenH = guiGetScreenSize() local PlacesTable = { Tables = { ['=][ أماكن التوجيهات ][='] ={ ['القفزة الخنفشارية'] = {1550.0161132813, -1366.4044189453, 326.2109375} , ['مركز الشرطة'] = {1543.1385498047,-1677.0050048828,13.555870056152} , ['التل الشاهق'] = {-2393.25415, -2202.31543, 33.28906} , ['مقر الجيش'] = {146.66674804688, 1720, 17.640625} , ['السد الكبير'] = {-887.02734375, 2000.9217529297, 60.654315948486} , ['مننطقة البندقية'] = {723.33862, -1487.2187523047, 1.93434} , ['الجسر المعلق'] = {-2696.1865234375, 1232.7795410156, 55.621524810791} , ['الحفرة الكبيرة'] = {369.61615, 991.90735, 30.41144} , ['النطة العالمية'] = {-2058.19360, -1743.08936, 472.42230} , ['حلبة المصارعة'] = {-1958.2077636719, -1808.7568359375, 471.66561889648} , ['مسار السباق'] = {-1978.2933349609, -1754.9453125, 471.60000610352} , ['مكتب المطار'] = {1678.33533, 1447.70569, 10.77515} , ['المطار الاول'] = {1717.6470947266, -2494.1176757813, 13.39999961853} , ['لمطار الثاني'] = {1411.7646484375, 1482.3529052734, 10.89999961853} , ['المطار الثالث'] = {-1223.4300537109, -185.74758911133, 14.39999961853} , ['برج الفيصليه'] = {1842.3481445313,858.84588623047 ,9.882495880127} , ['الفنادق'] = {-1739.0821533203, 940.56231689453, 24.7421875} , ['حارة سي جي'] = {2491.12109375, -1667.4482421875, 13.34375} , ['ساحه التفجير'] = {-2051.4926757813, -173.29304504395, 35.3203125} }, ['=][ آماكن التطعيس والتفجير ][='] ={ ['ساحة التفجير'] = {-2051.4926757813, -173.29304504395, 35.3203125} , ['الطعس'] = {-2600,-2694.1176757813,10.188545227051} }, ['= ][آماكن الهجولة ][='] ={ ['الشارع الطويل'] = {-3072.5554199219,-3000.345703125,5} , ['الدائري'] = {1753.3974609375, 776.7255859375, 10.8203125} , ['الغروب'] = {662.55310058594, 1936.7479248047, 5.5052728652954} , ['الغروب'] = {662.55310058594, 1936.7479248047, 5.5052728652954} , ['الغروب'] = {662.55310058594, 1936.7479248047, 5.5052728652954} , ['النخيل'] = {2068.1389160156, 1008.2157592773, 10.671875} , ['المطار الاول'] = {1717.6470947266, -2494.1176757813, 13.5546875} , ['المطار الثاني'] = {-1277.7352294922, 36.338359832764, 14.1484375} , ['المطار الثالث'] = {1321.2225341797, 1494.2713623047, 10.8203125} , ['الفروسية'] = {2878.1115722656, -1110.029296875, 10.882762908936} }, ['=][ آماكن شراء الاسلحة ][='] ={ ['المتجر الاول'] = {-2248.24194 ,127.06280, 35.17188} , ['المتجر الثاني'] = {2393.88623, -1977.91467, 13.54688} , ['المتجر الثالث'] = {1364.33691, -1285.49390, 13.54688} , ['المتجر الرابع'] = {801.23914 ,1686.75000, 5.28125} , ['المتجر الخامس'] = {2173.22534, 965.41931, 10.82031} }, ['= ][الآماكن الحصرية بالسيرفر =][']= { ['النطة العالمية'] = {-2058.19360, -1743.08936, 472.42230} , ['حلبة المصارعة'] = {-1958.2077636719, -1808.7568359375, 471.66561889648} , ['مسار السباق'] = {-1978.2933349609, -1754.9453125, 471.60000610352} , ['بنك وناسة ( سحب وايداع وتحويل )'] = {593.50756835938,-1242.6812744141,18.018035888672} , ['مسار السباق'] = {-1978.2933349609, -1754.9453125, 471.60000610352} , ['مكتب شراء البيوت'] = {3229,-1112,19} , ['اماكن صنع البيوت'] = {3459,-1072,19} , ['البداية'] = {-4249.74316 ,-3033.38623 ,41.31471} , ['النطة العالمية'] = {-2058.19360, -1743.08936, 472.42230} , ['حلبة المصارعة'] = {-1958.2077636719, -1808.7568359375, 471.66561889648} , ['مسار السباق'] = {-1978.2933349609, -1754.9453125, 471.60000610352} , ['مسار السباق'] = {-1978.2933349609, -1754.9453125, 471.60000610352} , [' سرقة البنك'] = {344.10763549805,2503.8784179688, 16.484375} } } } -- {You are at (154.66577, 1094.27124, 14.67220) Places = guiCreateGridList(0.34, 0.22, 0.28, 0.43, true) guiGridListAddColumn(Places, "المكان", 0.9) guiSetVisible(Places, false) for Key, Value in ipairs(PlacesTable) do local Row = guiGridListAddRow(Places) guiGridListSetItemText(Places, Row, 1, Value[1], false, false) guiGridListSetItemData(Places, Row, 1, {Value[2][1], Value[2][2], Value[2][3]}) end function dxDrawTransport() dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.7487, screenW * 0.6289, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.7487, screenW * 0.6289, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.2122, screenW * 0.2953, screenH * 0.5365, tocolor(0, 255, 0, 200), false) dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.2122, screenW * 0.6289, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.2122, screenW * 0.6289, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.1771, screenW * 0.2953, screenH * 0.0352, tocolor(255, 150, 0, 200), false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) - 1, (screenW * 0.6289) - 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) - 1, (screenW * 0.6289) + 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) + 1, (screenW * 0.6289) - 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) + 1, (screenW * 0.6289) + 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", screenW * 0.3328, screenH * 0.1706, screenW * 0.6289, screenH * 0.2070, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.3398) - 1, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3398) - 1, screenH * 0.7214, screenW * 0.4602, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, screenH * 0.7214, screenW * 0.4602, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.5008) - 1, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5008) - 1, screenH * 0.7214, screenW * 0.6211, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, screenH * 0.7214, screenW * 0.6211, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) end function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end function isMouseInPosition ( x, y, width, height ) if not isCursorShowing () then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function Effects() if isEventHandlerAdded("onClientRender", root, dxDrawTransport) then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) end end end bindKey("F6", "down", function () if not isEventHandlerAdded("onClientRender", root, dxDrawTransport) and not isCursorShowing() then addEventHandler("onClientRender", root, dxDrawTransport) addEventHandler("onClientRender", root, Effects) guiSetVisible(Places, true) showCursor(true) elseif isEventHandlerAdded("onClientRender", root, dxDrawTransport) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) end end ) addEventHandler("onClientClick", root, function (_, State) if isEventHandlerAdded("onClientRender", root, dxDrawTransport) and State == "up" then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then local Text = guiGridListGetItemText(Places, guiGridListGetSelectedItem(Places), 1) if Text ~= "" then local DT = guiGridListGetItemData(Places, guiGridListGetSelectedItem(Places), 1) if type(DT) == "table" then if isPedInVehicle(localPlayer) then setElementPosition(getPedOccupiedVehicle(localPlayer), DT[1], DT[2], DT[3]) else setElementPosition(localPlayer, DT[1], DT[2], DT[3]) end end else outputChatBox("اختار مكان اولاً", 255, 0, 0, true) end end end end ) Link to comment
DaminkO Posted July 27, 2016 Author Share Posted July 27, 2016 الجدول ما يطلعلي بالقريد ليست Link to comment
Emgawe.117 Posted July 27, 2016 Share Posted July 27, 2016 local screenW, screenH = guiGetScreenSize() local PlacesTable = { alamaken = { ['القفزة الخنفشارية'] = {1550.0161132813, -1366.4044189453, 326.2109375} , ['مركز الشرطة'] = {1543.1385498047,-1677.0050048828,13.555870056152} , ['التل الشاهق'] = {-2393.25415, -2202.31543, 33.28906} , ['مقر الجيش'] = {146.66674804688, 1720, 17.640625} , ['السد الكبير'] = {-887.02734375, 2000.9217529297, 60.654315948486} , ['مننطقة البندقية'] = {723.33862, -1487.2187523047, 1.93434} , ['الجسر المعلق'] = {-2696.1865234375, 1232.7795410156, 55.621524810791} , ['الحفرة الكبيرة'] = {369.61615, 991.90735, 30.41144} , ['النطة العالمية'] = {-2058.19360, -1743.08936, 472.42230} , ['حلبة المصارعة'] = {-1958.2077636719, -1808.7568359375, 471.66561889648} , ['مسار السباق'] = {-1978.2933349609, -1754.9453125, 471.60000610352} , ['مكتب المطار'] = {1678.33533, 1447.70569, 10.77515} , ['المطار الاول'] = {1717.6470947266, -2494.1176757813, 13.39999961853} , } Places = guiCreateGridList(0.34, 0.22, 0.28, 0.43, true) guiGridListAddColumn(Places, "المكان", 0.9) guiSetVisible(Places, false) for Key, Value in ipairs(PlacesTable) do local Row = guiGridListAddRow(Places) for i,v in ipairs(alamaken) do local row = guiGridListAddRow(Places) guiGridListSetItemText(Places,row,1,'['..i..']',false,false) guiGridListSetItemText(Places,row,2,v[1],false,false) end end function dxDrawTransport() dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.7487, screenW * 0.6289, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.7487, screenW * 0.6289, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.2122, screenW * 0.2953, screenH * 0.5365, tocolor(0, 255, 0, 200), false) dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.2122, screenW * 0.6289, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.2122, screenW * 0.6289, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.1771, screenW * 0.2953, screenH * 0.0352, tocolor(255, 150, 0, 200), false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) - 1, (screenW * 0.6289) - 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) - 1, (screenW * 0.6289) + 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) + 1, (screenW * 0.6289) - 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) + 1, (screenW * 0.6289) + 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", screenW * 0.3328, screenH * 0.1706, screenW * 0.6289, screenH * 0.2070, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.3398) - 1, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3398) - 1, screenH * 0.7214, screenW * 0.4602, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, screenH * 0.7214, screenW * 0.4602, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.5008) - 1, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5008) - 1, screenH * 0.7214, screenW * 0.6211, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, screenH * 0.7214, screenW * 0.6211, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) end function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end function isMouseInPosition ( x, y, width, height ) if not isCursorShowing () then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function Effects() if isEventHandlerAdded("onClientRender", root, dxDrawTransport) then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) end end end bindKey("F6", "down", function () if not isEventHandlerAdded("onClientRender", root, dxDrawTransport) and not isCursorShowing() then addEventHandler("onClientRender", root, dxDrawTransport) addEventHandler("onClientRender", root, Effects) guiSetVisible(Places, true) showCursor(true) elseif isEventHandlerAdded("onClientRender", root, dxDrawTransport) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) end end ) addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(Places) if source == move then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(Places,sel,2)) setElementPosition(localPlayer,x,y,z) else outputChatBox("*اختار مكان للانقال اليه",255,0,0) end end end ) addEventHandler("onClientGUIDoubleClick",root,function() if ( source == Places ) then local sel = guiGridListGetSelectedItem(Places) if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(Places,sel,1)) setElementPosition(localPlayer,x,y,z) showCursor(false) end end end) Link to comment
DaminkO Posted July 27, 2016 Author Share Posted July 27, 2016 ايش المشكلة الي كانت فيه Link to comment
DaminkO Posted July 27, 2016 Author Share Posted July 27, 2016 انا أبي يكون في تقسيم ابي مسااعدة Link to comment
N3xT Posted July 27, 2016 Share Posted July 27, 2016 انا أبي يكون في تقسيم ابي مسااعدة بالله إشرح لنا زين ، لأن مافيه ولا أحد فهم وش يعني تقسيم Link to comment
DaminkO Posted July 27, 2016 Author Share Posted July 27, 2016 يعني مثلا انا مسوي رو فيه شوارع الهجولة اذا اضغط عليه يطلعلي شارع الطويل ,الدائري ... Link to comment
N3xT Posted July 27, 2016 Share Posted July 27, 2016 يعني مثلا انا مسوي رو فيه شوارع الهجولة اذا اضغط عليه يطلعلي شارع الطويل ,الدائري ... سوي جدول لكل شارع مثلاً جدول لشوارع الهجولة وجدول للبيوت الخ وسوي 2 قريد ليست القريد ليست الأول فيه أسماء الروات حق الشوارع وإذا إختار واحد منها ينقله لقريد ليست ثاني ويحط الجدول الخاص بـ الرو Link to comment
Kara Posted July 27, 2016 Share Posted July 27, 2016 يعني مثلا انا مسوي رو فيه شوارع الهجولة اذا اضغط عليه يطلعلي شارع الطويل ,الدائري ... كود امقاوي غلط كله المهم جرب هذا وسويتلك فيه فواصل فراغات في القريد ليست local screenW, screenH = guiGetScreenSize() local PlacesTable = { {'=][ أماكن التوجيهات ][=', } , {'', } , {'القفزة الخنفشارية', 1550.0161132813,-1366.4044189453,326.2109375,} , {'مركز الشرطة',1543.1385498047,-1677.0050048828,13.555870056152,} , {'التل الشاهق',-2393.25415, -2202.31543, 33.28906,} , {'مقر الجيش',146.66674804688, 1720, 17.640625,} , {'السد الكبير',-887.02734375, 2000.9217529297, 60.654315948486,} , {'مننطقة البندقية',723.33862, -1487.2187523047, 1.93434,} , {'الجسر المعلق',-2696.1865234375, 1232.7795410156, 55.621524810791,} , {'الحفرة الكبيرة',369.61615, 991.90735, 30.41144,} , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مكتب المطار',1678.33533, 1447.70569, 10.77515,} , {'المطار الاول',1717.6470947266, -2494.1176757813, 13.39999961853,} , {'لمطار الثاني',1411.7646484375, 1482.3529052734, 10.89999961853,} , {'المطار الثالث',-1223.4300537109, -185.74758911133, 14.39999961853,} , {'برج الفيصليه',1842.3481445313,858.84588623047 ,9.882495880127,} , {'الفنادق',-1739.0821533203, 940.56231689453, 24.7421875,} , {'حارة سي جي',2491.12109375, -1667.4482421875, 13.34375,} , {'ساحه التفجير',-2051.4926757813, -173.29304504395, 35.3203125,}, {'', } , {'=][ آماكن التطعيس والتفجير ][=', } , {'', } , {'ساحة التفجير',-2051.4926757813, -173.29304504395, 35.3203125,} , {'الطعس',-2600,-2694.1176757813,10.188545227051,}, {'', } , {'= ][آماكن الهجولة ][=', } , {'', } , {'الشارع الطويل',-3072.5554199219,-3000.345703125,5,} , {'الدائري',1753.3974609375, 776.7255859375, 10.8203125,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'النخيل',2068.1389160156, 1008.2157592773, 10.671875,} , {'المطار الاول',1717.6470947266, -2494.1176757813, 13.5546875,} , {'المطار الثاني',-1277.7352294922, 36.338359832764, 14.1484375,} , {'المطار الثالث',1321.2225341797, 1494.2713623047, 10.8203125,} , {'الفروسية',2878.1115722656, -1110.029296875, 10.882762908936,}, {'', } , {'=][ آماكن شراء الاسلحة ][=', } , {'', } , {'المتجر الاول',-2248.24194 ,127.06280, 35.17188,} , {'المتجر الثاني',2393.88623, -1977.91467, 13.54688,} , {'المتجر الثالث',1364.33691, -1285.49390, 13.54688,} , {'المتجر الرابع',801.23914 ,1686.75000, 5.28125,} , {'المتجر الخامس',2173.22534, 965.41931, 10.82031,}, {'', } , {'= ][الآماكن الحصرية بالسيرفر =][', } , {'', } , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'بنك وناسة ( سحب وايداع وتحويل )',593.50756835938,-1242.6812744141,18.018035888672,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مكتب شراء البيوت',3229,-1112,19,} , {'اماكن صنع البيوت',3459,-1072,19,} , {'البداية',-4249.74316 ,-3033.38623 ,41.31471,} , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {' سرقة البنك',344.10763549805,2503.8784179688, 16.484375,} } -- {You are at (154.66577, 1094.27124, 14.67220) Places = guiCreateGridList(0.34, 0.22, 0.28, 0.43, true) guiGridListAddColumn(Places, "المكان", 0.9) guiSetVisible(Places, false) for i,v in ipairs(PlacesTable) do local rw = guiGridListAddRow(Places) guiGridListSetItemText(Places,rw,1,""..v[1],false,true) guiGridListSetItemData(Places,rw,1,{v[2],v[3],v[4]}) guiGridListSetItemColor(Places,v,1,192,139,56); end function dxDrawTransport() dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.7487, screenW * 0.6289, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.7487, screenW * 0.6289, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.2122, screenW * 0.2953, screenH * 0.5365, tocolor(0, 255, 0, 200), false) dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.2122, screenW * 0.6289, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.2122, screenW * 0.6289, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.1771, screenW * 0.2953, screenH * 0.0352, tocolor(255, 150, 0, 200), false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) - 1, (screenW * 0.6289) - 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) - 1, (screenW * 0.6289) + 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) + 1, (screenW * 0.6289) - 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) + 1, (screenW * 0.6289) + 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", screenW * 0.3328, screenH * 0.1706, screenW * 0.6289, screenH * 0.2070, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.3398) - 1, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3398) - 1, screenH * 0.7214, screenW * 0.4602, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, screenH * 0.7214, screenW * 0.4602, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.5008) - 1, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5008) - 1, screenH * 0.7214, screenW * 0.6211, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, screenH * 0.7214, screenW * 0.6211, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) end function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end function isMouseInPosition ( x, y, width, height ) if not isCursorShowing () then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function Effects() if isEventHandlerAdded("onClientRender", root, dxDrawTransport) then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) end end end bindKey("F6", "down", function () if not isEventHandlerAdded("onClientRender", root, dxDrawTransport) and not isCursorShowing() then addEventHandler("onClientRender", root, dxDrawTransport) addEventHandler("onClientRender", root, Effects) guiSetVisible(Places, true) showCursor(true) elseif isEventHandlerAdded("onClientRender", root, dxDrawTransport) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) end end ) addEventHandler("onClientClick", root, function (_, State) if isEventHandlerAdded("onClientRender", root, dxDrawTransport) and State == "up" then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then local Text = guiGridListGetItemText(Places, guiGridListGetSelectedItem(Places), 1) if Text ~= "" then local DT = guiGridListGetItemData(Places, guiGridListGetSelectedItem(Places), 1) if type(DT) == "table" then if isPedInVehicle(localPlayer) then setElementPosition(getPedOccupiedVehicle(localPlayer), DT[1], DT[2], DT[3]) else setElementPosition(localPlayer, DT[1], DT[2], DT[3]) end end else outputChatBox("اختار مكان اولاً", 255, 0, 0, true) end end end end ) Link to comment
Ahmed Ly Posted July 27, 2016 Share Posted July 27, 2016 يعني مثلا انا مسوي رو فيه شوارع الهجولة اذا اضغط عليه يطلعلي شارع الطويل ,الدائري ... كود امقاوي غلط كله المهم جرب هذا وسويتلك فيه فواصل فراغات في القريد ليست local screenW, screenH = guiGetScreenSize() local PlacesTable = { {'=][ أماكن التوجيهات ][=', } , {'', } , {'القفزة الخنفشارية', 1550.0161132813,-1366.4044189453,326.2109375,} , {'مركز الشرطة',1543.1385498047,-1677.0050048828,13.555870056152,} , {'التل الشاهق',-2393.25415, -2202.31543, 33.28906,} , {'مقر الجيش',146.66674804688, 1720, 17.640625,} , {'السد الكبير',-887.02734375, 2000.9217529297, 60.654315948486,} , {'مننطقة البندقية',723.33862, -1487.2187523047, 1.93434,} , {'الجسر المعلق',-2696.1865234375, 1232.7795410156, 55.621524810791,} , {'الحفرة الكبيرة',369.61615, 991.90735, 30.41144,} , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مكتب المطار',1678.33533, 1447.70569, 10.77515,} , {'المطار الاول',1717.6470947266, -2494.1176757813, 13.39999961853,} , {'لمطار الثاني',1411.7646484375, 1482.3529052734, 10.89999961853,} , {'المطار الثالث',-1223.4300537109, -185.74758911133, 14.39999961853,} , {'برج الفيصليه',1842.3481445313,858.84588623047 ,9.882495880127,} , {'الفنادق',-1739.0821533203, 940.56231689453, 24.7421875,} , {'حارة سي جي',2491.12109375, -1667.4482421875, 13.34375,} , {'ساحه التفجير',-2051.4926757813, -173.29304504395, 35.3203125,}, {'', } , {'=][ آماكن التطعيس والتفجير ][=', } , {'', } , {'ساحة التفجير',-2051.4926757813, -173.29304504395, 35.3203125,} , {'الطعس',-2600,-2694.1176757813,10.188545227051,}, {'', } , {'= ][آماكن الهجولة ][=', } , {'', } , {'الشارع الطويل',-3072.5554199219,-3000.345703125,5,} , {'الدائري',1753.3974609375, 776.7255859375, 10.8203125,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'النخيل',2068.1389160156, 1008.2157592773, 10.671875,} , {'المطار الاول',1717.6470947266, -2494.1176757813, 13.5546875,} , {'المطار الثاني',-1277.7352294922, 36.338359832764, 14.1484375,} , {'المطار الثالث',1321.2225341797, 1494.2713623047, 10.8203125,} , {'الفروسية',2878.1115722656, -1110.029296875, 10.882762908936,}, {'', } , {'=][ آماكن شراء الاسلحة ][=', } , {'', } , {'المتجر الاول',-2248.24194 ,127.06280, 35.17188,} , {'المتجر الثاني',2393.88623, -1977.91467, 13.54688,} , {'المتجر الثالث',1364.33691, -1285.49390, 13.54688,} , {'المتجر الرابع',801.23914 ,1686.75000, 5.28125,} , {'المتجر الخامس',2173.22534, 965.41931, 10.82031,}, {'', } , {'= ][الآماكن الحصرية بالسيرفر =][', } , {'', } , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'بنك وناسة ( سحب وايداع وتحويل )',593.50756835938,-1242.6812744141,18.018035888672,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مكتب شراء البيوت',3229,-1112,19,} , {'اماكن صنع البيوت',3459,-1072,19,} , {'البداية',-4249.74316 ,-3033.38623 ,41.31471,} , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {' سرقة البنك',344.10763549805,2503.8784179688, 16.484375,} } -- {You are at (154.66577, 1094.27124, 14.67220) Places = guiCreateGridList(0.34, 0.22, 0.28, 0.43, true) guiGridListAddColumn(Places, "المكان", 0.9) guiSetVisible(Places, false) for i,v in ipairs(PlacesTable) do local rw = guiGridListAddRow(Places) guiGridListSetItemText(Places,rw,1,""..v[1],false,true) guiGridListSetItemData(Places,rw,1,{v[2],v[3],v[4]}) guiGridListSetItemColor(Places,v,1,192,139,56); end function dxDrawTransport() dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.7487, screenW * 0.6289, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.7487, screenW * 0.6289, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.2122, screenW * 0.2953, screenH * 0.5365, tocolor(0, 255, 0, 200), false) dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.2122, screenW * 0.6289, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.2122, screenW * 0.6289, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.1771, screenW * 0.2953, screenH * 0.0352, tocolor(255, 150, 0, 200), false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) - 1, (screenW * 0.6289) - 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) - 1, (screenW * 0.6289) + 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) + 1, (screenW * 0.6289) - 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) + 1, (screenW * 0.6289) + 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", screenW * 0.3328, screenH * 0.1706, screenW * 0.6289, screenH * 0.2070, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.3398) - 1, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3398) - 1, screenH * 0.7214, screenW * 0.4602, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, screenH * 0.7214, screenW * 0.4602, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.5008) - 1, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5008) - 1, screenH * 0.7214, screenW * 0.6211, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, screenH * 0.7214, screenW * 0.6211, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) end function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end function isMouseInPosition ( x, y, width, height ) if not isCursorShowing () then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function Effects() if isEventHandlerAdded("onClientRender", root, dxDrawTransport) then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) end end end bindKey("F6", "down", function () if not isEventHandlerAdded("onClientRender", root, dxDrawTransport) and not isCursorShowing() then addEventHandler("onClientRender", root, dxDrawTransport) addEventHandler("onClientRender", root, Effects) guiSetVisible(Places, true) showCursor(true) elseif isEventHandlerAdded("onClientRender", root, dxDrawTransport) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) end end ) addEventHandler("onClientClick", root, function (_, State) if isEventHandlerAdded("onClientRender", root, dxDrawTransport) and State == "up" then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then local Text = guiGridListGetItemText(Places, guiGridListGetSelectedItem(Places), 1) if Text ~= "" then local DT = guiGridListGetItemData(Places, guiGridListGetSelectedItem(Places), 1) if type(DT) == "table" then if isPedInVehicle(localPlayer) then setElementPosition(getPedOccupiedVehicle(localPlayer), DT[1], DT[2], DT[3]) else setElementPosition(localPlayer, DT[1], DT[2], DT[3]) end end else outputChatBox("اختار مكان اولاً", 255, 0, 0, true) end end end end ) عندك خطاء في سطر 75 خليه هكي guiGridListSetItemColor(Places,rw,1,192,139,56) Link to comment
Kara Posted July 28, 2016 Share Posted July 28, 2016 يعني مثلا انا مسوي رو فيه شوارع الهجولة اذا اضغط عليه يطلعلي شارع الطويل ,الدائري ... كود امقاوي غلط كله المهم جرب هذا وسويتلك فيه فواصل فراغات في القريد ليست local screenW, screenH = guiGetScreenSize() local PlacesTable = { {'=][ أماكن التوجيهات ][=', } , {'', } , {'القفزة الخنفشارية', 1550.0161132813,-1366.4044189453,326.2109375,} , {'مركز الشرطة',1543.1385498047,-1677.0050048828,13.555870056152,} , {'التل الشاهق',-2393.25415, -2202.31543, 33.28906,} , {'مقر الجيش',146.66674804688, 1720, 17.640625,} , {'السد الكبير',-887.02734375, 2000.9217529297, 60.654315948486,} , {'مننطقة البندقية',723.33862, -1487.2187523047, 1.93434,} , {'الجسر المعلق',-2696.1865234375, 1232.7795410156, 55.621524810791,} , {'الحفرة الكبيرة',369.61615, 991.90735, 30.41144,} , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مكتب المطار',1678.33533, 1447.70569, 10.77515,} , {'المطار الاول',1717.6470947266, -2494.1176757813, 13.39999961853,} , {'لمطار الثاني',1411.7646484375, 1482.3529052734, 10.89999961853,} , {'المطار الثالث',-1223.4300537109, -185.74758911133, 14.39999961853,} , {'برج الفيصليه',1842.3481445313,858.84588623047 ,9.882495880127,} , {'الفنادق',-1739.0821533203, 940.56231689453, 24.7421875,} , {'حارة سي جي',2491.12109375, -1667.4482421875, 13.34375,} , {'ساحه التفجير',-2051.4926757813, -173.29304504395, 35.3203125,}, {'', } , {'=][ آماكن التطعيس والتفجير ][=', } , {'', } , {'ساحة التفجير',-2051.4926757813, -173.29304504395, 35.3203125,} , {'الطعس',-2600,-2694.1176757813,10.188545227051,}, {'', } , {'= ][آماكن الهجولة ][=', } , {'', } , {'الشارع الطويل',-3072.5554199219,-3000.345703125,5,} , {'الدائري',1753.3974609375, 776.7255859375, 10.8203125,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'الغروب',662.55310058594, 1936.7479248047, 5.5052728652954,} , {'النخيل',2068.1389160156, 1008.2157592773, 10.671875,} , {'المطار الاول',1717.6470947266, -2494.1176757813, 13.5546875,} , {'المطار الثاني',-1277.7352294922, 36.338359832764, 14.1484375,} , {'المطار الثالث',1321.2225341797, 1494.2713623047, 10.8203125,} , {'الفروسية',2878.1115722656, -1110.029296875, 10.882762908936,}, {'', } , {'=][ آماكن شراء الاسلحة ][=', } , {'', } , {'المتجر الاول',-2248.24194 ,127.06280, 35.17188,} , {'المتجر الثاني',2393.88623, -1977.91467, 13.54688,} , {'المتجر الثالث',1364.33691, -1285.49390, 13.54688,} , {'المتجر الرابع',801.23914 ,1686.75000, 5.28125,} , {'المتجر الخامس',2173.22534, 965.41931, 10.82031,}, {'', } , {'= ][الآماكن الحصرية بالسيرفر =][', } , {'', } , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'بنك وناسة ( سحب وايداع وتحويل )',593.50756835938,-1242.6812744141,18.018035888672,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مكتب شراء البيوت',3229,-1112,19,} , {'اماكن صنع البيوت',3459,-1072,19,} , {'البداية',-4249.74316 ,-3033.38623 ,41.31471,} , {'النطة العالمية',-2058.19360, -1743.08936, 472.42230,} , {'حلبة المصارعة',-1958.2077636719, -1808.7568359375, 471.66561889648,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {'مسار السباق',-1978.2933349609, -1754.9453125, 471.60000610352,} , {' سرقة البنك',344.10763549805,2503.8784179688, 16.484375,} } -- {You are at (154.66577, 1094.27124, 14.67220) Places = guiCreateGridList(0.34, 0.22, 0.28, 0.43, true) guiGridListAddColumn(Places, "المكان", 0.9) guiSetVisible(Places, false) for i,v in ipairs(PlacesTable) do local rw = guiGridListAddRow(Places) guiGridListSetItemText(Places,rw,1,""..v[1],false,true) guiGridListSetItemData(Places,rw,1,{v[2],v[3],v[4]}) guiGridListSetItemColor(Places,v,1,192,139,56); end function dxDrawTransport() dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.2122) - 1, (screenW * 0.3336) - 1, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.7487, screenW * 0.6289, screenH * 0.7487, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.7487, screenW * 0.6289, (screenH * 0.2122) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.2122, screenW * 0.2953, screenH * 0.5365, tocolor(0, 255, 0, 200), false) dxDrawLine((screenW * 0.3336) - 1, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, (screenH * 0.1771) - 1, (screenW * 0.3336) - 1, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3336) - 1, screenH * 0.2122, screenW * 0.6289, screenH * 0.2122, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6289, screenH * 0.2122, screenW * 0.6289, (screenH * 0.1771) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3336, screenH * 0.1771, screenW * 0.2953, screenH * 0.0352, tocolor(255, 150, 0, 200), false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) - 1, (screenW * 0.6289) - 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) - 1, (screenW * 0.6289) + 1, (screenH * 0.2070) - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) - 1, (screenH * 0.1706) + 1, (screenW * 0.6289) - 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", (screenW * 0.3328) + 1, (screenH * 0.1706) + 1, (screenW * 0.6289) + 1, (screenH * 0.2070) + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText(".:[P.S]:. - الانتقالات", screenW * 0.3328, screenH * 0.1706, screenW * 0.6289, screenH * 0.2070, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.3398) - 1, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, (screenH * 0.6862) - 1, (screenW * 0.3398) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3398) - 1, screenH * 0.7214, screenW * 0.4602, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.4602, screenH * 0.7214, screenW * 0.4602, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawLine((screenW * 0.5008) - 1, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, (screenH * 0.6862) - 1, (screenW * 0.5008) - 1, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5008) - 1, screenH * 0.7214, screenW * 0.6211, screenH * 0.7214, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.6211, screenH * 0.7214, screenW * 0.6211, (screenH * 0.6862) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(0, 100, 255, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) end function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end function isMouseInPosition ( x, y, width, height ) if not isCursorShowing () then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function Effects() if isEventHandlerAdded("onClientRender", root, dxDrawTransport) then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("اغلاق", 639 - 1, 526 - 1, 795 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 - 1, 795 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 - 1, 526 + 1, 795 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639 + 1, 526 + 1, 795 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", true, false, false, true, false) dxDrawText("اغلاق", 639, 526, 795, 554, tocolor(0, 254, 186, 200), 2.00, "default", "center", "center", true, false, false, true, false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then dxDrawRectangle(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352, tocolor(255, 0, 0, 200), false) dxDrawText("انتقال", 433 - 1, 526 - 1, 589 - 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 - 1, 589 + 1, 554 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 - 1, 526 + 1, 589 - 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433 + 1, 526 + 1, 589 + 1, 554 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "center", false, false, false, true, false) dxDrawText("انتقال", 433, 526, 589, 554, tocolor(255, 0, 0, 200), 2.00, "default", "center", "center", false, false, false, true, false) end end end bindKey("F6", "down", function () if not isEventHandlerAdded("onClientRender", root, dxDrawTransport) and not isCursorShowing() then addEventHandler("onClientRender", root, dxDrawTransport) addEventHandler("onClientRender", root, Effects) guiSetVisible(Places, true) showCursor(true) elseif isEventHandlerAdded("onClientRender", root, dxDrawTransport) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) end end ) addEventHandler("onClientClick", root, function (_, State) if isEventHandlerAdded("onClientRender", root, dxDrawTransport) and State == "up" then if isMouseInPosition(screenW * 0.5008, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then removeEventHandler("onClientRender", root, dxDrawTransport) removeEventHandler("onClientRender", root, Effects) guiSetVisible(Places, false) showCursor(false) elseif isMouseInPosition(screenW * 0.3398, screenH * 0.6862, screenW * 0.1203, screenH * 0.0352) then local Text = guiGridListGetItemText(Places, guiGridListGetSelectedItem(Places), 1) if Text ~= "" then local DT = guiGridListGetItemData(Places, guiGridListGetSelectedItem(Places), 1) if type(DT) == "table" then if isPedInVehicle(localPlayer) then setElementPosition(getPedOccupiedVehicle(localPlayer), DT[1], DT[2], DT[3]) else setElementPosition(localPlayer, DT[1], DT[2], DT[3]) end end else outputChatBox("اختار مكان اولاً", 255, 0, 0, true) end end end end ) عندك خطاء في سطر 75 خليه هكي guiGridListSetItemColor(Places,rw,1,192,139,56) خطأ مآيأثر ...ومانسميه خطأ شكرآ لي ملاحظتك الدقيق Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now