Jump to content

محتاج مساعده بصنع لوحة نقل انا ما اعرف مليح للقريد ليست


Recommended Posts

شف ردي هنا بيفيدك
تفضل هذي الاكواد بعد التصليح الكلي ض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
شف ردي هنا بيفيدك
تفضل هذي الاكواد بعد التصليح الكلي ض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

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...