Mr.3nTr Posted March 27, 2015 Share Posted March 27, 2015 السلام عليكم ورحمه الله وبركاته شباب انا سويت لوحة وحطيتها تتح باف5 بس م تفتح الكود GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(432, 210, 398, 341, "=[ لوحة التحكم ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF3EB09") GUIEditor.button[1] = guiCreateButton(218, 46, 165, 43, "=[ دم ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00E2FD") GUIEditor.button[2] = guiCreateButton(10, 46, 165, 43, "=[ درع]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00E2FD") GUIEditor.button[3] = guiCreateButton(218, 99, 165, 43, "=[ فلوس ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00E2FD") GUIEditor.button[4] = guiCreateButton(9, 159, 379, 46, "=[ ساعات ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF00E2FD") GUIEditor.button[5] = guiCreateButton(10, 99, 165, 43, "=[ سيارة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF00E2FD") GUIEditor.button[6] = guiCreateButton(220, 219, 168, 45, "=[ حفظ الأماكن ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF00E2FD") GUIEditor.button[7] = guiCreateButton(9, 219, 168, 45, "=[ حفظ شخصية السي جي ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF00E2FD") GUIEditor.button[8] = guiCreateButton(128, 300, 148, 31, "=[ آغلاق الوحة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF00E2FD") end) bindKey("F5", "down", function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) guiSetVisible (GUIEditor.window[1], false) showCursor(guiGetVisible(GUIEditor.window[1])) end end) Link to comment
TAPL Posted March 27, 2015 Share Posted March 27, 2015 ما حطيته bindKey قوس إغلاق فنكشن Link to comment
ALw7sH Posted March 27, 2015 Share Posted March 27, 2015 ما حطيته bindKey قوس إغلاق فنكشن لا القوس موجود بس فيه أيند زايدة Link to comment
TAPL Posted March 27, 2015 Share Posted March 27, 2015 مافيه ايند زايد الي بسطر 10 function الأيند الأولى حقت الي بسطر 53 function الأيند الثانية حقت الي بسطر 9 addEventHandler القوس الي في سطر 57 هذا حق اغلاق قوس الي بسطر 52 bindKey ناقص يحط قوس لأغلاق Link to comment
ALw7sH Posted March 27, 2015 Share Posted March 27, 2015 شكلك مو منتبه للأيند والقوس الي بسطر 50 لول Link to comment
TAPL Posted March 27, 2015 Share Posted March 27, 2015 فعلاً ما انتبهت لها، بالعادة محد يحط الأيند في نهاية سطر كود Link to comment
ALw7sH Posted March 27, 2015 Share Posted March 27, 2015 أحذف الايند الي بسطر 57 وياليت ياتابل لو تحذف ردودنا Link to comment
Mr.3nTr Posted March 28, 2015 Author Share Posted March 28, 2015 أحذف الايند الي بسطر 57وياليت ياتابل لو تحذف ردودنا م إشتغل Link to comment
yazan Posted March 28, 2015 Share Posted March 28, 2015 (edited) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(432, 210, 398, 341, "=[ لوحة التحكم ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF3EB09") GUIEditor.button[1] = guiCreateButton(218, 46, 165, 43, "=[ دم ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00E2FD") GUIEditor.button[2] = guiCreateButton(10, 46, 165, 43, "=[ درع]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00E2FD") GUIEditor.button[3] = guiCreateButton(218, 99, 165, 43, "=[ فلوس ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00E2FD") GUIEditor.button[4] = guiCreateButton(9, 159, 379, 46, "=[ ساعات ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF00E2FD") GUIEditor.button[5] = guiCreateButton(10, 99, 165, 43, "=[ سيارة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF00E2FD") GUIEditor.button[6] = guiCreateButton(220, 219, 168, 45, "=[ حفظ الأماكن ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF00E2FD") GUIEditor.button[7] = guiCreateButton(9, 219, 168, 45, "=[ حفظ شخصية السي جي ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF00E2FD") GUIEditor.button[8] = guiCreateButton(128, 300, 148, 31, "=[ آغلاق الوحة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF00E2FD") end) bindKey("F5","down", function () guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end) تم تعديل Edited March 28, 2015 by Guest Link to comment
Mr.3nTr Posted March 28, 2015 Author Share Posted March 28, 2015 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(432, 210, 398, 341, "=[ لوحة التحكم ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF3EB09") GUIEditor.button[1] = guiCreateButton(218, 46, 165, 43, "=[ دم ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00E2FD") GUIEditor.button[2] = guiCreateButton(10, 46, 165, 43, "=[ درع]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00E2FD") GUIEditor.button[3] = guiCreateButton(218, 99, 165, 43, "=[ فلوس ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00E2FD") GUIEditor.button[4] = guiCreateButton(9, 159, 379, 46, "=[ ساعات ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF00E2FD") GUIEditor.button[5] = guiCreateButton(10, 99, 165, 43, "=[ سيارة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF00E2FD") GUIEditor.button[6] = guiCreateButton(220, 219, 168, 45, "=[ حفظ الأماكن ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF00E2FD") GUIEditor.button[7] = guiCreateButton(9, 219, 168, 45, "=[ حفظ شخصية السي جي ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF00E2FD") GUIEditor.button[8] = guiCreateButton(128, 300, 148, 31, "=[ آغلاق الوحة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF00E2FD") end) bindKey("F5", "down", function () guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) guiSetVisible (GUIEditor.window[1], false) showCursor(guiGetVisible(GUIEditor.window[1])) end) م إشتغل Link to comment
shwaeki Posted March 28, 2015 Share Posted March 28, 2015 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(432, 210, 398, 341, "=[ لوحة التحكم ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF3EB09") guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(218, 46, 165, 43, "=[ دم ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00E2FD") GUIEditor.button[2] = guiCreateButton(10, 46, 165, 43, "=[ درع]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00E2FD") GUIEditor.button[3] = guiCreateButton(218, 99, 165, 43, "=[ فلوس ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00E2FD") GUIEditor.button[4] = guiCreateButton(9, 159, 379, 46, "=[ ساعات ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF00E2FD") GUIEditor.button[5] = guiCreateButton(10, 99, 165, 43, "=[ سيارة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF00E2FD") GUIEditor.button[6] = guiCreateButton(220, 219, 168, 45, "=[ حفظ الأماكن ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF00E2FD") GUIEditor.button[7] = guiCreateButton(9, 219, 168, 45, "=[ حفظ شخصية السي جي ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF00E2FD") GUIEditor.button[8] = guiCreateButton(128, 300, 148, 31, "=[ آغلاق الوحة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF00E2FD") end) bindKey("f5","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end) Link to comment
N3xT Posted March 28, 2015 Share Posted March 28, 2015 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(432, 210, 398, 341, "=[ لوحة التحكم ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF3EB09") guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(218, 46, 165, 43, "=[ دم ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00E2FD") GUIEditor.button[2] = guiCreateButton(10, 46, 165, 43, "=[ درع]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00E2FD") GUIEditor.button[3] = guiCreateButton(218, 99, 165, 43, "=[ فلوس ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00E2FD") GUIEditor.button[4] = guiCreateButton(9, 159, 379, 46, "=[ ساعات ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF00E2FD") GUIEditor.button[5] = guiCreateButton(10, 99, 165, 43, "=[ سيارة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF00E2FD") GUIEditor.button[6] = guiCreateButton(220, 219, 168, 45, "=[ حفظ الأماكن ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF00E2FD") GUIEditor.button[7] = guiCreateButton(9, 219, 168, 45, "=[ حفظ شخصية السي جي ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF00E2FD") GUIEditor.button[8] = guiCreateButton(128, 300, 148, 31, "=[ آغلاق الوحة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF00E2FD") end) guiSetVisible (GUIEditor.window[1], false) function xblack() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", xblack) Link to comment
Mr.3nTr Posted March 28, 2015 Author Share Posted March 28, 2015 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(432, 210, 398, 341, "=[ لوحة التحكم ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF3EB09") guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(218, 46, 165, 43, "=[ دم ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00E2FD") GUIEditor.button[2] = guiCreateButton(10, 46, 165, 43, "=[ درع]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00E2FD") GUIEditor.button[3] = guiCreateButton(218, 99, 165, 43, "=[ فلوس ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00E2FD") GUIEditor.button[4] = guiCreateButton(9, 159, 379, 46, "=[ ساعات ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF00E2FD") GUIEditor.button[5] = guiCreateButton(10, 99, 165, 43, "=[ سيارة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF00E2FD") GUIEditor.button[6] = guiCreateButton(220, 219, 168, 45, "=[ حفظ الأماكن ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF00E2FD") GUIEditor.button[7] = guiCreateButton(9, 219, 168, 45, "=[ حفظ شخصية السي جي ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF00E2FD") GUIEditor.button[8] = guiCreateButton(128, 300, 148, 31, "=[ آغلاق الوحة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF00E2FD") end) bindKey("f5","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end) مشكووور تمت الإفادة 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