Jump to content

ومساعده بي اكواد -مساعده بسيطه جدا بالجداول


Recommended Posts

شباب ابي مساعدتكم في شئ

المهم انا اشوف في الجداول الاكواد هاي

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 by Guest
Link to comment
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

Link to comment

طب الحين سويت مود انتقالات

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 
) 

واللوحة ما تفتح ليش

Link to comment

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 by Guest
Link to comment
طب الحين سويت مود انتقالات
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 
) 

Link to comment
طب الحين سويت مود انتقالات
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 
) 
Link to comment

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 فيه ( " ) 
  

:fadein::fadein::fadein:

Link to comment

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 
) 
Link to comment

تفضل هذي الاكواد بعد التصليح الكلي ض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 ) 
Link to comment

كلنت

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" /> 

Link to comment
كلنت
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

Link to comment

  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 ) 
Link to comment
  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 ) 

يب اشتغل شكرا وش كان الغلط بكودي

Link to comment

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 ) 
Link to comment
  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 ) 

بس ابي افهم وش غيرت بكوده ؟! للحين الخطأ موجود

وهو قال شكراً ف ماله داعي ردك , وياريت اذا ما تعرف المشكلة لا ترد على أي موضوع

لان كل ما اشوفك تحط كود كله هريسة وما منه فايده ردك بكل المواضيع :|

Link to comment

طب اسف يا سترونج اخر طلب ضض

المهم هاي الكود لما حطيته بي المود المود ما صار يفتح ليش

addEventHandler('onClientGuiClick',root, 
if source == search then 
local text = guiGetText(search) 
string.find(text,grid) 
end 
) 

ابيه يسوي بحث

اسم الايديت = search

اسم الجريد ليست =grid

Link to comment

  
  
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

Link to comment
  
  
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 ) 

ما اشتغل :oops:

Link to comment

     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 ) 
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...