terreus Posted August 9, 2015 Share Posted August 9, 2015 السلام وعليكم اليوم حبيت اسوي نافذة وحركات وتاثيرات ببي فنكش Pain بس مشتغل ويقولي في شات : Not GUI Element ذذ كود فتح نافذة Open : bindKey("F4","Down", function() if lightsWindow then guiSetVisible(lightsWindow,not guiGetVisible(lightsWindow)) showCursor(guiGetVisible(lightsWindow)) guiAddInterpolateEffect( lightsWindow, cx, cy, cw, ch, 0, 0, 0, 0, 2, "OutBounce", "OutInElastic", false ) else guiAddInterpolateEffect( lightsWindow, 0, 0, 0, 0, x, y, w, h, 2, "OutBounce", "OutBounce", true ) showCursor (true) startGui() end end, false) function guiAddInterpolateEffect( ... ) return call( getResourceFromName( "GIE" ), "guiAddInterpolateEffect", unpack( { ... } ) ) end خطأ او معرف مهم ؟ Link to comment
#Mr.Rajo~,< Posted August 9, 2015 Share Posted August 9, 2015 حطيت الاكواد ؟حقت بين ؟ او ركب المود اللي مسويه Link to comment
terreus Posted August 9, 2015 Author Share Posted August 9, 2015 حطيت الاكواد ؟حقت بين ؟او ركب المود اللي مسويه سويت كل شيء بس ميشتغل Link to comment
#Mr.Rajo~,< Posted August 9, 2015 Share Posted August 9, 2015 يمكن مو حاط الصور بالميتا Link to comment
terreus Posted August 9, 2015 Author Share Posted August 9, 2015 يمكن مو حاط الصور بالميتا وش تخلط انتا خليك مكانك افضل قال صورة ذذ فنكش تحريك واضافة تاثيرات ع نافذة Link to comment
#Mr.Rajo~,< Posted August 9, 2015 Share Posted August 9, 2015 النافذه مافيها صورة ؟ + ماخربط حاولت اساعدك Link to comment
terreus Posted August 9, 2015 Author Share Posted August 9, 2015 النافذه مافيها صورة ؟+ ماخربط حاولت اساعدك ذذ فنكش تحريك نافذة واضافة تاثيراتت Link to comment
#DRAGON!FIRE Posted August 9, 2015 Share Posted August 9, 2015 lightsWindow ورني سطر صناعة Link to comment
terreus Posted August 9, 2015 Author Share Posted August 9, 2015 local screenW, screenH = guiGetScreenSize() function startGui () lightsWindow = guiCreateStaticImage(screenW - 623 - 10, (screenH - 443) / 2, 623, 443, "led.png", false) previewStaticImage = guiCreateStaticImage(211, 195, 208, 171, "images/"..currentLight..".jpg", false, lightsWindow) lightsComboBox = guiCreateComboBox(201, 113, 233, 200, "Default", false, lightsWindow) for i,light in ipairs (lights) do local id = guiComboBoxAddItem (lightsComboBox,light) if light == currentLight then guiComboBoxSetSelected(lightsComboBox,id) end end addEventHandler("onClientGUIComboBoxAccepted",lightsComboBox,changeLights) drawlightsCheckBox = guiCreateCheckBox(205, 141, 35, 30, "", false, false, lightsWindow) guiSetAlpha(drawlightsCheckBox, 0.22) local saveChangesButton = guiCreateButton(212, 373, 70, 30, "", false, lightsWindow) guiSetAlpha(saveChangesButton, 0.18) guiSetProperty(saveChangesButton, "NormalTextColour", "FFAAAAAA") local closeWindowButton = guiCreateButton(349, 373, 70, 30, "", false, lightsWindow) guiSetAlpha(closeWindowButton, 0.18) guiSetProperty(closeWindowButton, "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick",saveChangesButton,saveChanges,false) addEventHandler("onClientGUIClick",closeWindowButton,closeWindow,false) end Link to comment
#DRAGON!FIRE Posted August 9, 2015 Share Posted August 9, 2015 ما اعرف السكربت لكن يمكن هو مسوي انه بس للنوافذ . لكن جرب زي كذا : local screenW, screenH = guiGetScreenSize() lightsWindow = guiCreateStaticImage(screenW - 623 - 10, (screenH - 443) / 2, 623, 443, "led.png", false) guiSetVisible(lightsWindow,false) function startGui () previewStaticImage = guiCreateStaticImage(211, 195, 208, 171, "images/"..currentLight..".jpg", false, lightsWindow) lightsComboBox = guiCreateComboBox(201, 113, 233, 200, "Default", false, lightsWindow) for i,light in ipairs (lights) do local id = guiComboBoxAddItem (lightsComboBox,light) if light == currentLight then guiComboBoxSetSelected(lightsComboBox,id) end end addEventHandler("onClientGUIComboBoxAccepted",lightsComboBox,changeLights) drawlightsCheckBox = guiCreateCheckBox(205, 141, 35, 30, "", false, false, lightsWindow) guiSetAlpha(drawlightsCheckBox, 0.22) local saveChangesButton = guiCreateButton(212, 373, 70, 30, "", false, lightsWindow) guiSetAlpha(saveChangesButton, 0.18) guiSetProperty(saveChangesButton, "NormalTextColour", "FFAAAAAA") local closeWindowButton = guiCreateButton(349, 373, 70, 30, "", false, lightsWindow) guiSetAlpha(closeWindowButton, 0.18) guiSetProperty(closeWindowButton, "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick",saveChangesButton,saveChanges,false) addEventHandler("onClientGUIClick",closeWindowButton,closeWindow,false) end Link to comment
terreus Posted August 9, 2015 Author Share Posted August 9, 2015 ما اعرف السكربت لكن يمكن هو مسوي انه بس للنوافذ .لكن جرب زي كذا : local screenW, screenH = guiGetScreenSize() lightsWindow = guiCreateStaticImage(screenW - 623 - 10, (screenH - 443) / 2, 623, 443, "led.png", false) guiSetVisible(lightsWindow,false) function startGui () previewStaticImage = guiCreateStaticImage(211, 195, 208, 171, "images/"..currentLight..".jpg", false, lightsWindow) lightsComboBox = guiCreateComboBox(201, 113, 233, 200, "Default", false, lightsWindow) for i,light in ipairs (lights) do local id = guiComboBoxAddItem (lightsComboBox,light) if light == currentLight then guiComboBoxSetSelected(lightsComboBox,id) end end addEventHandler("onClientGUIComboBoxAccepted",lightsComboBox,changeLights) drawlightsCheckBox = guiCreateCheckBox(205, 141, 35, 30, "", false, false, lightsWindow) guiSetAlpha(drawlightsCheckBox, 0.22) local saveChangesButton = guiCreateButton(212, 373, 70, 30, "", false, lightsWindow) guiSetAlpha(saveChangesButton, 0.18) guiSetProperty(saveChangesButton, "NormalTextColour", "FFAAAAAA") local closeWindowButton = guiCreateButton(349, 373, 70, 30, "", false, lightsWindow) guiSetAlpha(closeWindowButton, 0.18) guiSetProperty(closeWindowButton, "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick",saveChangesButton,saveChanges,false) addEventHandler("onClientGUIClick",closeWindowButton,closeWindow,false) end لازم يون تحت startGui تشتغل لوحة وتهضر وجربت كو حقك وتخربت لوحة Link to comment
terreus Posted August 9, 2015 Author Share Posted August 9, 2015 https://forum.multitheftauto.com/viewtopic.php?f=161&t=64607 ذذ فنكش حقه Link to comment
#DRAGON!FIRE Posted August 9, 2015 Share Posted August 9, 2015 ولله ما اعرف الكود الكامل حقكـ .. المهم انه تقدر تستخدمه مع الصور .. بس المشكلة من عندك .. يقلك هذا مو جيو المنت .. عاد شيك ان كل شي صحيح Link to comment
terreus Posted August 9, 2015 Author Share Posted August 9, 2015 ولله ما اعرف الكود الكامل حقكـ ..المهم انه تقدر تستخدمه مع الصور .. بس المشكلة من عندك .. يقلك هذا مو جيو المنت .. عاد شيك ان كل شي صحيح بحاول احذف صورة واغيره لل Window Link to comment
~Mr.Hassan Posted August 9, 2015 Share Posted August 9, 2015 يغلق .. من متى Your Admin Link to comment
terreus Posted August 9, 2015 Author Share Posted August 9, 2015 يغلق .. من متى Your Admin انا صاحب موضوع : | قلت يغلق لا تزود مشاركات 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