Mostafa MohammeD Posted March 24, 2016 Posted March 24, 2016 (edited) شباب ابي مساعدتكم في شئ المهم انا اشوف في الجداول الاكواد هاي for k,v in paris\iparis (اسم الجدول) do for i,mk in paris\iparis (اسم الجدول) do for id,p in paris\iparis (اسم الجدول) do k,v \ i,mk \ id,p ممكن احد يشرحلي هاي الاشياء شو اكتب هون او يشرحلي عبارة عن شو ومن وين اعرفهم Edited March 24, 2016 by Guest مستواي في البرمجة 20% Skype = mr_m.o.s.t.a.f.a youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ
فاّرس Posted March 24, 2016 Posted March 24, 2016 https://forum.multitheftauto.com/viewtopic.php?f ... 0&start=90 شوف هالموضوع عندك صفحة 7 و 8 شرحناها انا وزاحف سهله .. Sha67 سابقاً
Jupi Posted March 24, 2016 Posted March 24, 2016 for هذا لوب واللوب له انواع while, repeat, generic for, numeric for اللي يستعملوه في الجداول هو generic for طيب هذا وش يسوي؟ هذا يستخرج معلومات من iterator function وينفذ شيء Note : pairs + ipairs iterator functions وفيه string.gmatch هذا iterator function وكل واحد له وظيفة طيب كيف تسوي لوب generic? for Data in iterator(Arguments) do -- المطلوب end Data : اللي راح يستخرج من الiterator في pairs و ipairs يكونو Key, Value iterator : الفنكشن اللي بتجيب منه الداتا Arguments : ألارقمنتات المطلوب من الفنكشن ان شاء الله وصلت ض1
Mostafa MohammeD Posted March 24, 2016 Author Posted March 24, 2016 مشكورر بيست ودابل اسف لازعاجكم وشكرا مرة اخرة لمساعدتي مستواي في البرمجة 20% Skype = mr_m.o.s.t.a.f.a youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ
Mostafa MohammeD Posted March 24, 2016 Author Posted March 24, 2016 طب الحين سويت مود انتقالات GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey(F6,"down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiSetVisible(wnd)) end ) addEventHandler('onClientGUIClick',root, function() if source = btn_close then guiSetVisible(wnd,false) showCursor(true) end end ) places = {"النخيل",2123.62622, 1397.25793, 10.81252} for k,v in paris (places) do local row = GuiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end end end ) واللوحة ما تفتح ليش مستواي في البرمجة 20% Skype = mr_m.o.s.t.a.f.a youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ
Adham Posted March 24, 2016 Posted March 24, 2016 (edited) local bind = 'F6' GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } -- places = { {"النخيل",2123.62622, 1397.25793, 10.81252} } -- local screenW, screenH = guiGetScreenSize() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) -- bindKey (bind,'down', function () guiSetVisible (wnd,not guiGetVisible (wnd)) showCursor (guiGetVisible (wnd)) end) for _, v in ipairs (places) do local Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], Row, 1, v[1], false, false) guiGridListSetItemText(GUIEditor.gridlist[1], Row, 2, v[2], false, false) end addEventHandler("onClientGUIClick",root, function() if (source = btn_close) then guiSetVisible(wnd,false) showCursor(false) end end) addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end end ) Edited March 24, 2016 by Guest قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
iMr.WiFi..! Posted March 24, 2016 Posted March 24, 2016 طب الحين سويت مود انتقالات GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey(F6,"down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiSetVisible(wnd)) end ) addEventHandler('onClientGUIClick',root, function() if source = btn_close then guiSetVisible(wnd,false) showCursor(true) end end ) places = {"النخيل",2123.62622, 1397.25793, 10.81252} for k,v in paris (places) do local row = GuiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end end end ) واللوحة ما تفتح ليش GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey("F6","down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiSetVisible(wnd)) end ) addEventHandler('onClientGUIClick',root, function() if source = btn_close then guiSetVisible(wnd,false) showCursor(true) end end ) places = {"النخيل",2123.62622, 1397.25793, 10.81252} for k,v in paris (places) do local row = GuiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end end end ) Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
Adham Posted March 24, 2016 Posted March 24, 2016 طب الحين سويت مود انتقالات GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey(F6,"down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiSetVisible(wnd)) end ) addEventHandler('onClientGUIClick',root, function() if source = btn_close then guiSetVisible(wnd,false) showCursor(true) end end ) places = {"النخيل",2123.62622, 1397.25793, 10.81252} for k,v in paris (places) do local row = GuiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end end end ) واللوحة ما تفتح ليش GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey("F6","down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiSetVisible(wnd)) end ) addEventHandler('onClientGUIClick',root, function() if source = btn_close then guiSetVisible(wnd,false) showCursor(true) end end ) places = {"النخيل",2123.62622, 1397.25793, 10.81252} for k,v in paris (places) do local row = GuiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end end end ) في شي غلط عندك places = {"النخيل",2123.62622, 1397.25793, 10.81252} edit # places = { {"النخيل",2123.62622, 1397.25793, 10.81252} } + addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end end end ) عندك 3 end edit # addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end end ) قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
iMr.WiFi..! Posted March 24, 2016 Posted March 24, 2016 Le3ba في اخطاء عندكك .. addEventHandler('onClientGUIClick',root, function sel = guiGridListGetSelectedItem(grid) if source = btn_warb then if sel ~= -1 then local x,y,z = unpack (guiGridListSetItemData(grid,sel,1)) setElementPosition(localplayer,x,y,z) end -- تحقق الاول end -- تحقق ثاني end -- انهاء الفنكشن ) كيف تقول بس ثنين end ---------- معنده هو اي مشكلة الا في ال bindKey ( f6 , -- الى اخرة مافي ( " ) انت المفروض تسوي bindKey("F6", -- الى اخرة Edit فيه ( " ) Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
#|_oskar_|# Posted March 24, 2016 Posted March 24, 2016 bindKey ("F2", "down", function () guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end) places = { {"النخيل",2123.62622, 1397.25793, 10.81252} } for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler("onClientGUIClick",root,function () local sel = guiGridListGetSelectedItem(grid) if source == btn_warb then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(grid,sel,1)) setElementPosition(localPlayer,x,y,z) end end end ) لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
Mr.R Posted March 24, 2016 Posted March 24, 2016 تفضل هذي الاكواد بعد التصليح الكلي ض1 , بطعاً شغاله 100% بس لوحتك فيها اغلاط كثير لازم تصلحها وياليت تخليها لوحه عاديه يكون احسن ومافيه مشاكل local places = { { "النخيل", 2123.62622, 1397.25793, 10.81252 }, } GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.9 ) for k,v in ipairs ( places ) do local Row = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, Row, 1, v[1], false, false ) guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) end btn_warb = guiCreateButton(8, 380, 60, 32, "warp", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey ( "F6", "down", function ( ) guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "* تم الإنتقال بنجاح", 0, 255, 0, true ) else outputChatBox ( "* الرجاء اختيار مكان للإنتقال إليه", 255, 0, 0, true ) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_close ) then guiSetVisible ( wnd, false ) showCursor ( false ) end end ) * There is no God but Allah, Mohammed is the Messenger Of Allah
Mostafa MohammeD Posted March 25, 2016 Author Posted March 25, 2016 شباب اللوحة صارت تفتح بس ما يوجد شئ بالجريد ليست ليش ؟ مستواي في البرمجة 20% Skype = mr_m.o.s.t.a.f.a youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ
Abdul KariM Posted March 25, 2016 Posted March 25, 2016 الاكواد صحيحةة تاكد من الصوورة واسمها ونفس الصيغة , + تأكد من الميتا [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
Mostafa MohammeD Posted March 25, 2016 Author Posted March 25, 2016 كلنت GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey ("F2", "down", function () guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end) addEventHandler('onClientGUIClick',root, function () if source == btn_close then guiSetVisible(wnd,false) showCursor(false) end end ) places = { {"النخيل",2123.62622, 1397.25793, 10.81252}, } for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "* تم الإنتقال بنجاح", 0, 255, 0, true ) else outputChatBox ( "* الرجاء اختيار مكان للإنتقال إليه", 255, 0, 0, true ) end end end ) ميتا "1XxCr[o]sS" /> مستواي في البرمجة 20% Skype = mr_m.o.s.t.a.f.a youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ
#StrOnG_,) Posted March 25, 2016 Posted March 25, 2016 كلنت GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey ("F2", "down", function () guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end) addEventHandler('onClientGUIClick',root, function () if source == btn_close then guiSetVisible(wnd,false) showCursor(false) end end ) places = { {"النخيل",2123.62622, 1397.25793, 10.81252}, } for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "* تم الإنتقال بنجاح", 0, 255, 0, true ) else outputChatBox ( "* الرجاء اختيار مكان للإنتقال إليه", 255, 0, 0, true ) end end end ) ميتا "1XxCr[o]sS" /> وش يجيك بالدي بق ؟! F8 = debugscript 3 Quote "I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them, I'm just playing with ya. I don't care where the top is, Leave me at the bottom, let me work for it." _________________________________________________________________________________________________________________ ACM W_#9661
#StrOnG_,) Posted March 25, 2016 Posted March 25, 2016 places = { {"النخيل",2123.62622, 1397.25793, 10.81252}, } GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "Places:", 0.5) for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey ("F2", "down", function () guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end) addEventHandler('onClientGUIClick',root, function () if source == btn_close then guiSetVisible(wnd,false) showCursor(false) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "* تم الإنتقال بنجاح", 0, 255, 0, true ) else outputChatBox ( "* الرجاء اختيار مكان للإنتقال إليه", 255, 0, 0, true ) end end end ) Quote "I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them, I'm just playing with ya. I don't care where the top is, Leave me at the bottom, let me work for it." _________________________________________________________________________________________________________________ ACM W_#9661
Mostafa MohammeD Posted March 25, 2016 Author Posted March 25, 2016 places = { {"النخيل",2123.62622, 1397.25793, 10.81252}, } GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "Places:", 0.5) for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey ("F2", "down", function () guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end) addEventHandler('onClientGUIClick',root, function () if source == btn_close then guiSetVisible(wnd,false) showCursor(false) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "* تم الإنتقال بنجاح", 0, 255, 0, true ) else outputChatBox ( "* الرجاء اختيار مكان للإنتقال إليه", 255, 0, 0, true ) end end end ) يب اشتغل شكرا وش كان الغلط بكودي مستواي في البرمجة 20% Skype = mr_m.o.s.t.a.f.a youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ
Adham Posted March 25, 2016 Posted March 25, 2016 local places = { { "النخيل", 2123.62622, 1397.25793, 10.81252 }, } GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey ( "F6", "down", function ( ) guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_close ) then guiSetVisible ( wnd, false ) showCursor ( false ) end end ) for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "* تم الإنتقال بنجاح", 0, 255, 0, true ) else outputChatBox ( "* الرجاء اختيار مكان للإنتقال إليه", 255, 0, 0, true ) end end end ) قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
#StrOnG_,) Posted March 25, 2016 Posted March 25, 2016 places = { {"النخيل",2123.62622, 1397.25793, 10.81252}, } GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "Places:", 0.5) for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey ("F2", "down", function () guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end) addEventHandler('onClientGUIClick',root, function () if source == btn_close then guiSetVisible(wnd,false) showCursor(false) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "* تم الإنتقال بنجاح", 0, 255, 0, true ) else outputChatBox ( "* الرجاء اختيار مكان للإنتقال إليه", 255, 0, 0, true ) end end end ) يب اشتغل شكرا وش كان الغلط بكودي العفو الغلط كنت حاط هذي الهريسة guiGridListAddColumn(grid, "places", 0.-- s8) --> سطر 16 بكودك الأصلي الي كانت فيه المشكلة local places = { { "النخيل", 2123.62622, 1397.25793, 10.81252 }, } GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(32, 16, 137, 71, "places", false, wnd) guiSetFont(label, "sa-gothic") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "places", 0.-- s8) --> btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) end ) bindKey ( "F6", "down", function ( ) guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_close ) then guiSetVisible ( wnd, false ) showCursor ( false ) end end ) for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "* تم الإنتقال بنجاح", 0, 255, 0, true ) else outputChatBox ( "* الرجاء اختيار مكان للإنتقال إليه", 255, 0, 0, true ) end end end ) بس ابي افهم وش غيرت بكوده ؟! للحين الخطأ موجود وهو قال شكراً ف ماله داعي ردك , وياريت اذا ما تعرف المشكلة لا ترد على أي موضوع لان كل ما اشوفك تحط كود كله هريسة وما منه فايده ردك بكل المواضيع Quote "I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them, I'm just playing with ya. I don't care where the top is, Leave me at the bottom, let me work for it." _________________________________________________________________________________________________________________ ACM W_#9661
Mostafa MohammeD Posted March 25, 2016 Author Posted March 25, 2016 طب اسف يا سترونج اخر طلب ضض المهم هاي الكود لما حطيته بي المود المود ما صار يفتح ليش addEventHandler('onClientGuiClick',root, if source == search then local text = guiGetText(search) string.find(text,grid) end ) ابيه يسوي بحث اسم الايديت = search اسم الجريد ليست =grid مستواي في البرمجة 20% Skype = mr_m.o.s.t.a.f.a youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ
#StrOnG_,) Posted March 25, 2016 Posted March 25, 2016 local Places = { { "النخيل", { 2123.62622, 1397.25793, 10.81252 } } } local Find = string["find"] function RefreshGridList( StringToFind ) StringToFind = StringToFind or "" for Index = 1, #Places do local Value = Places[Index] local PlaceName = Value[1] if ( Find( PlaceName, StringToFind ) ) then local Row = guiGridListAddRow( grid ) guiGridListSetItemText( grid, Row, 1, PlaceName, false, false ) guiGridListSetItemData( grid, Row, 1, Value[2] ) end end end addEventHandler( "onClientGUIChanged", متغير الإيديت, function() RefreshGridList( guiGetText( source ) ) end ) Places = متغير الجدول Code By #CroSs Quote "I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them, I'm just playing with ya. I don't care where the top is, Leave me at the bottom, let me work for it." _________________________________________________________________________________________________________________ ACM W_#9661
Mostafa MohammeD Posted March 26, 2016 Author Posted March 26, 2016 local Places = { { "النخيل", { 2123.62622, 1397.25793, 10.81252 } } } local Find = string["find"] function RefreshGridList( StringToFind ) StringToFind = StringToFind or "" for Index = 1, #Places do local Value = Places[Index] local PlaceName = Value[1] if ( Find( PlaceName, StringToFind ) ) then local Row = guiGridListAddRow( grid ) guiGridListSetItemText( grid, Row, 1, PlaceName, false, false ) guiGridListSetItemData( grid, Row, 1, Value[2] ) end end end addEventHandler( "onClientGUIChanged", متغير الإيديت, function() RefreshGridList( guiGetText( source ) ) end ) Places = متغير الجدول Code By #CroSs local places = { {"النخيل",2123.62622, 1397.25793, 10.81252}, {"منطقة سي جي",2494.11475, -1670.83850, 13.33595}, {"ساحة الالعاب",2683.67017, -1683.80151, 9.42411}, {"المطار الاول",1658.57507, -2519.34888, 13.54688}, {"المطار الثاني",-1180.51404, -197.14261, 14.14844}, {"المطار الثالث",1674.34668, 1611.93433, 10.82031}, {"استاد الكرة",1364.30066, 2165.78101, 11.01563}, {"المجمع السكني",2568.18945, 1826.29065, 10.82031}, } GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(18, 10, 168, 40, "places mod", false, wnd) guiSetFont(label, "sa-header") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "Places:", 0.-- s8) --> for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) search = guiCreateEdit(6, 56, 195, 27, "", false, wnd) guiSetProperty(search, "NormalTextColour", "FF00FFFC") end ) bindKey ("F6", "down", function () guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end) addEventHandler('onClientGUIClick',root, function () if source == btn_close then guiSetVisible(wnd,false) showCursor(false) end end ) local Find = string["find"] function RefreshGridList( StringToFind ) StringToFind = StringToFind or "" for Index = 1, #Places do local Value = Places[Index] local PlaceName = Value[1] if ( Find( PlaceName, StringToFind ) ) then local Row = guiGridListAddRow( grid ) guiGridListSetItemText( grid, Row, 1, PlaceName, false, false ) guiGridListSetItemData( grid, Row, 1, Value[2] ) end end end addEventHandler( "onClientGUIChanged",search, function() RefreshGridList( guiGetText( source ) ) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "*تم نقلك بنجاح للمكان الذي اخترته *", 0, 255, 0, true ) else outputChatBox ( "*الرجاء اختيار مكان لتنتقل له*", 255, 0, 0, true ) end end end ) ما اشتغل مستواي في البرمجة 20% Skype = mr_m.o.s.t.a.f.a youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ
Me[Z]oO Posted March 26, 2016 Posted March 26, 2016 كود البحث الي م شتغل صح ؟ Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
#|_oskar_|# Posted March 26, 2016 Posted March 26, 2016 local places = { {"النخيل",2123.62622, 1397.25793, 10.81252}, {"منطقة سي جي",2494.11475, -1670.83850, 13.33595}, {"ساحة الالعاب",2683.67017, -1683.80151, 9.42411}, {"المطار الاول",1658.57507, -2519.34888, 13.54688}, {"المطار الثاني",-1180.51404, -197.14261, 14.14844}, {"المطار الثالث",1674.34668, 1611.93433, 10.82031}, {"استاد الكرة",1364.30066, 2165.78101, 11.01563}, {"المجمع السكني",2568.18945, 1826.29065, 10.82031}, } GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } wnd = guiCreateStaticImage(0.00, 0.21, 0.16, 0.56, "11.png", true) guiSetProperty(wnd, "ImageColours", "tl:FF00FFFC tr:FF00FFFC bl:FF00FFFC br:FF00FFFC") guiSetVisible(wnd,false) label = guiCreateLabel(18, 10, 168, 40, "places mod", false, wnd) guiSetFont(label, "sa-header") guiLabelSetColor(label, 0, 255, 252) grid = guiCreateGridList(6, 87, 195, 289, false, wnd) guiGridListAddColumn(grid, "Places:", 0.6) for k,v in ipairs(places) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end btn_warb = guiCreateButton(8, 380, 60, 32, "warb", false, wnd) guiSetFont(btn_warb, "default-bold-small") guiSetProperty(btn_warb, "NormalTextColour", "FF00FFFC") btn_close = guiCreateButton(155, 380, 40, 32, "✖", false, wnd) guiSetProperty(btn_close, "NormalTextColour", "FF00FFFC") label2 = guiCreateLabel(10, 418, 181, 16, "that mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 0, 255, 252) search = guiCreateEdit(6, 56, 195, 27, "", false, wnd) guiSetProperty(search, "NormalTextColour", "FF00FFFC") bindKey ("F6", "down", function () guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end) addEventHandler('onClientGUIClick',root, function () if source == btn_close then guiSetVisible(wnd,false) showCursor(false) end end ) addEventHandler("onClientGUIChanged",search,function () guiGridListClear(grid) for k,v in ipairs(places) do if string.find(v[1],guiGetText(search)) then local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemData(grid,row,1,{v[2],v[3],v[4]}) end end end,false) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == btn_warb ) then if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then setElementPosition ( localPlayer, unpack ( guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) ) ) outputChatBox ( "*تم نقلك بنجاح للمكان الذي اخترته *", 0, 255, 0, true ) else outputChatBox ( "*الرجاء اختيار مكان لتنتقل له*", 255, 0, 0, true ) end end end ) لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
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