taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 روجو قفل عفريت ممكن تشوف الخطأ؟ Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7] then guiSetVisible(GUIEditor.window[1] , false) end end) addEventHandler("onClientResourceStart",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end) انت مستخدم حدث غلط جرب كذا GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7] then guiSetVisible(GUIEditor.window[1] , false) end end) addEventHandler("onClientGUIClick",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end) Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 اخوي تم اشتغل بس الاغنيه ما تشتغل الا اذا مثلن حط تشغيل الطيران ابيه لما يكبس اف 2 فهمت قصدي؟؟ +معلش تقولي وين الخطأ حقي مشان اتعلم من اخطائي Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 (edited) اخوي تم اشتغل بس الاغنيه ما تشتغل الا اذا مثلن حط تشغيل الطيران ابيه لما يكبس اف 2 فهمت قصدي؟؟+معلش تقولي وين الخطأ حقي مشان اتعلم من اخطائي GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) bindKey("f2",'down', function ( ) getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if getV == true then playSound("intro.mp3" ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) elseif ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) elseif ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) elseif ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) elseif source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) elseif ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[7] then guiSetVisible(GUIEditor.window[1] , false) end end ) addEventHandler("onClientResourceStart",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end) معليش الخطأ كان من عندي عدلت اكوادك جرب شوف Edited September 7, 2015 by Guest Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 بس قولي وين الخطأ الي كان عندك مشان اضبطه من مكتبه الاكواد +الكلام ليه تغير صار عبري؟ Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 عدلت طال عمرك كان كذا addEventHandler("onClientResourceStart",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end) خليته بالبند كي فأصبح bindKey("f2",'down', function ( ) getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if getV == true then playSound("intro.mp3" ) end end ) تارراااااااااااااا Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 كذا تمام بكره ممكن تعلمني كيف احط صورة باللوحه؟ ومعلش توضحلي بسرعه مثال لكود مثلن اخلي الزر له تايمر لما يكبسه يرجع يفتح بعد مده Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 استخدم سكربت guieditor https://community.multitheftauto.com/in ... ils&id=141 Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 يب انا محمله بس ما اعرف كيف احط صور Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 (edited) عدلت طال عمرك كان كذا addEventHandler("onClientResourceStart",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end) خليته بالبند كي فأصبح bindKey("f2",'down', function ( ) getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if getV == true then playSound("intro.mp3" ) end end ) تارراااااااااااااا كودك يوم يشغل اللوحة يشتغل الصوت ويوم يطفي اللوحة يشتغل صوت ثاني يعني بيصير لخبطة ف الافضل يستخدم ذا bindKey("f2","down", function () guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if not isElement(sound) then sound = playSound("intro.mp3", false) else stopSound(sound) end end end) Edited September 7, 2015 by Guest Link to comment
!#NssoR_) Posted September 7, 2015 Share Posted September 7, 2015 ^ انت مسوي تحقق في سطر 5 ليه ترجع تسوي تحقق ثاني في سطر 8 Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 ^ انت مسوي تحقق في سطر 5 ليه ترجع تسوي تحقق ثاني في سطر 8 سويته ع السريع و مانتبهت عدلته Link to comment
#Mr.Rajo~,< Posted September 8, 2015 Share Posted September 8, 2015 عدلت طال عمرك كان كذا addEventHandler("onClientResourceStart",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end) خليته بالبند كي فأصبح bindKey("f2",'down', function ( ) getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if getV == true then playSound("intro.mp3" ) end end ) تارراااااااااااااا كودك يوم يشغل اللوحة يشتغل الصوت ويوم يطفي اللوحة يشتغل صوت ثاني يعني بيصير لخبطة ف الافضل يستخدم ذا bindKey("f2","down", function () guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if not isElement(sound) then sound = playSound("intro.mp3", false) else stopSound(sound) end end end) مشكور على المعلومه :] كمان يقدر يخليها كذا bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if guiGetVisible(GUIEditor.window[1]) == true then playSound("intro.mp3" ) end end ) انا كنت بسويها كذا لاكن نسيت احط المتغير ض1 Link to comment
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