shwaeki Posted December 29, 2013 Posted December 29, 2013 السلام عليكم و رحة الله و بركاتة انا سويت لوحة انتقالات جراند لسات و كلشي تمام بتنقل بس في حشكلة واحدة انو اما اعص على الوحة بيختفي الز و الجراند لست يعني فتحت الوحة مثل من اف 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")
shwaeki Posted December 29, 2013 Author Posted December 29, 2013 لا المشكلة في الوحة مو في الاكواد يمكن ما فهمتني حتا لو اقيم الاكود لما اعص على الوحة بيختفي الز و الجراند لست زي اكنو لوحتين مو لوحة
AboShanab Posted December 29, 2013 Posted December 29, 2013 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)
shwaeki Posted December 29, 2013 Author Posted December 29, 2013 اخي ابو شنب هيك الجران لست و الز بطلو يجي من اول ما اشغل المود بكونو مخفين
al-Kobra Posted December 29, 2013 Posted December 29, 2013 اخي ابو شنب هيك الجران لست و الز بطلو يجي من اول ما اشغل المود بكونو مخفين الجريد لست والزر صاروا يشتغلوا من اف اتنين
shwaeki Posted December 29, 2013 Author Posted December 29, 2013 يب اعرف بعص اف 2 بس بتطلع الوحة يا حال بتكون فاضية
Mr-M3AND Posted December 29, 2013 Posted December 29, 2013 جرب 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)
shwaeki Posted December 29, 2013 Author Posted December 29, 2013 اخي الوحة اشتغلت تمت التمام بس ما بتنقل
#DRAGON!FIRE Posted December 29, 2013 Posted December 29, 2013 ججرب ... , ولأ تنسا تححط الاحداثيات الصحيحةة . 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 )
shwaeki Posted December 29, 2013 Author Posted December 29, 2013 اخي سحف كودك ما اشتغ بس خلص حليت المكلة عت الوحة من اول و جديد
#DRAGON!FIRE Posted December 29, 2013 Posted December 29, 2013 اخي سحف كودك ما اشتغ بس خلص حليت المكلة عت الوحة من اول و جديد اوك , مع انه اشوفه ما فيه مشاكل
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