Jump to content

طلب كود


shwaeki

Recommended Posts

السلام عليكم و رحة الله و بركاتة

انا سويت لوحة انتقالات جراند لسات و كلشي تمام بتنقل

بس في حشكلة واحدة

انو اما اعص على الوحة بيختفي الز و الجراند لست

يعني فتحت الوحة مثل من اف 2

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

هاي الوحة

addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(404, 194, 266, 407, "انتقالات", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.gridlist[1] = guiCreateGridList( 419, 225, 228, 291, false, GUIEditor.window[1]) 
        guiGridListAddColumn( GUIEditor.gridlist[1], "Warp", 0.9 ) 
        guiGridListSetItemText( GUIEditor.gridlist[1], 0, 1, "-", false, false ) 
        for i,v in ipairs( warptaple ) do 
            local row = guiGridListAddRow( GUIEditor.gridlist[1] ) 
            guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, v[1], false, false ) 
        end 
        GUIEditor.button[1] = guiCreateButton(462, 522, 140, 54, "=[ Go ]=", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF67F509")   

Link to comment
local GUIEditor = { 
 window = {}, 
 gridlist = {}, 
 button = {} 
} 
  
local Warp = { 
 { "الدائري", x, y, z }, 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(404, 194, 266, 407, "انتقالات", false) 
        guiSetVisible(GUIEditor.window[1], false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
        GUIEditor.gridlist[1] = guiCreateGridList( 419, 225, 228, 291, false, GUIEditor.window[1]) 
        guiGridListAddColumn( GUIEditor.gridlist[1], "Warp", 0.9 ) 
        for i,v in ipairs( Warp ) do 
            local row = guiGridListAddRow( GUIEditor.gridlist[1] ) 
            guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, v[1], false, false ) 
            guiGridListSetItemData( GUIEditor.gridlist[1], row, 1, {v[2],v[3],v[4]}) 
        end 
        GUIEditor.button[1] = guiCreateButton(462, 522, 140, 54, "=[ Go ]=", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF67F509") 
    end 
) 
  
bindKey("F2","down",function (  ) 
guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) 
showCursor(guiGetVisible(GUIEditor.window[1])) 
end) 
  
addEventHandler("onClientGUIClick",root,function (  ) 
local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) 
if ( source == GUIEditor.button[1] ) then 
if ( sel ~= -1 ) then 
local x,y,z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1],sel,1)) 
setElementPosition(localPlayer,x,y,z) 
guiSetVisible(GUIEditor.window[1], false) 
showCursor(false) 
end 
end 
end) 

Link to comment

جرب

local GUIEditor = { 
 window = {}, 
 gridlist = {}, 
 button = {} 
} 
  
local Warp = { 
 { "الدائري", x, y, z }, 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(404, 194, 266, 407, "انتقالات", false) 
        guiSetVisible(GUIEditor.window[1], false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
        GUIEditor.gridlist[1] = guiCreateGridList( 9, 24, 328, 316, false, GUIEditor.window[1]) 
        guiGridListAddColumn( GUIEditor.gridlist[1], "Warp", 0.9 ) 
        for i,v in ipairs( Warp ) do 
            local row = guiGridListAddRow( GUIEditor.gridlist[1] ) 
            guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, v[1], false, false ) 
            guiGridListSetItemData( GUIEditor.gridlist[1], row, 1, {v[2],v[3],v[4]}) 
        end 
        GUIEditor.button[1] = guiCreateButton(65, 344, 140, 54, "=[ Go ]=", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF67F509") 
    end 
) 
  
bindKey("F2","down",function (  ) 
guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) 
showCursor(guiGetVisible(GUIEditor.window[1])) 
end) 
  
addEventHandler("onClientGUIClick",root,function (  ) 
local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) 
if ( source == GUIEditor.button[1] ) then 
if ( sel ~= -1 ) then 
local x,y,z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1],sel,1)) 
setElementPosition(localPlayer,x,y,z) 
guiSetVisible(GUIEditor.window[1], false) 
end 
end 
end) 

Link to comment

ججرب ... , ولأ تنسا تححط الاحداثيات الصحيحةة .

local GUIEditor = { 
 window = {}, 
 gridlist = {}, 
 button = {} 
} 
  
  
local text = { 
    { 'الدائري' }, 
} 
  
local Warp = { 
 [ 'الدائري' ] = { x, y, z }, 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(404, 194, 266, 407, "انتقالات", false) 
        guiSetVisible(GUIEditor.window[1], false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
        GUIEditor.gridlist[1] = guiCreateGridList( 9, 24, 328, 316, false, GUIEditor.window[1]) 
        guiGridListAddColumn( GUIEditor.gridlist[1], "Warp", 0.9 ) 
        for _,v in ipairs ( text ) do 
        guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, v [ 1 ],false,false ) 
        end 
        GUIEditor.button[1] = guiCreateButton(65, 344, 140, 54, "=[ Go ]=", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF67F509") 
    end 
) 
  
bindKey("F2","down",function (  ) 
guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) 
showCursor(guiGetVisible(GUIEditor.window[1])) 
end) 
  
addEventHandler("onClientGUIClick",root,function (  ) 
 local Pos = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) 
    if ( source == GUIEditor.button[1] ) then 
        if ( Pos and Pos ~= '' ) then 
             setElementPosition(localPlayer, Warp [ Pos ] [ 1 ], Warp [ Pos ] [ 2 ], Warp [ Pos ] [ 3 ]) 
             guiSetVisible(GUIEditor.window[1], false) 
            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...