Professional Posted May 16, 2015 Share Posted May 16, 2015 السلام عليكم اليوم انا ابي افتح الوحه بزر بس احط كود انه تفتح باف 5 ما تفتح ممكن حل bindKey ( "F3" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end Link to comment
terreus Posted May 16, 2015 Share Posted May 16, 2015 (edited) bindKey("F5","down", function () guiSetVisible(Wnd,not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) if ( guiGetVisible(GUIEditor_Window[1]) == true ) then end end ) مجربته قسم مو صحيح يرجا من مراقب نقله Edited May 16, 2015 by Guest Link to comment
Professional Posted May 16, 2015 Author Share Posted May 16, 2015 طيب بس لينقله حللي هل مشكله Link to comment
terreus Posted May 16, 2015 Share Posted May 16, 2015 bindKey("F5","down", function () guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) if ( guiGetVisible(GUIEditor_Window[1]) == true ) then end end ) مجربته قسم مو صحيح يرجا من مراقب نقله تفضل Link to comment
Professional Posted May 16, 2015 Author Share Posted May 16, 2015 [08:35:05] WARNING: 1287\Client.lua:23: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'F5'] Link to comment
terreus Posted May 16, 2015 Share Posted May 16, 2015 [08:35:05] WARNING: 1287\Client.lua:23: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'F5'] local Key = "F5" bindKey(Key,"down", function () guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) if ( guiGetVisible(GUIEditor_Window[1]) == true ) then end end ) Link to comment
Simple. Posted May 16, 2015 Share Posted May 16, 2015 [08:35:05] WARNING: 1287\Client.lua:23: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'F5'] انت مستخدم الكود ب جآنب سيرفر وهو كلنت !!! يعني إذآ كان سيرفر لآزم تحط اور ارقمنت اللاعب الي يصير له وإذآ كلنت مايحتاج تحطه فتأكد من الميتا Link to comment
' A F . Posted May 17, 2015 Share Posted May 17, 2015 bindKey("F5","down", function ( ) guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end) اذا م اشتغل اطرح الميتا Link to comment
~Mr.Hassan Posted May 17, 2015 Share Posted May 17, 2015 bindKey("F5","down", function ( ) guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end) اذا م اشتغل اطرح الميتا وعليكم السلام هنا لازم يمكن يحط هذا سطر في الميتا .. "*BindKey" value="F7" desc="زر فـتح الـنافذة" /> Link to comment
' A F . Posted May 17, 2015 Share Posted May 17, 2015 ^ لا مو لازم ! انا ف موداتي ال GUI استخدم الكود ذا Link to comment
Simple. Posted May 17, 2015 Share Posted May 17, 2015 bindKey("F5","down", function ( ) guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end) اذا م اشتغل اطرح الميتا وعليكم السلام هنا لازم يمكن يحط هذا سطر في الميتا .. "*BindKey" value="F7" desc="زر فـتح الـنافذة" /> هذي تستخدم لفنكشن set get Link to comment
Mr.R Posted May 18, 2015 Share Posted May 18, 2015 جرب كذا bindKey ( "الزر الي يفتح اللوحه", "down", function ( ) guiSetVisible ( اسم اللوحه, not guiGetVisible ( اسم اللوحه ) ) showCursor ( guiGetVisible ( اسم اللوحه ) ) end ) ولا تنسى تحط تحت اللوحه الي سويتها guiSetVisible ( اسم اللوحه, false ) عشان ماتطلع بوجهك اول ماتشغل المود والاكواد مجربه وشغاله 100% اذا ماتشغلت عندكـ قلي وش الكلام الي يجيك في الدي بوق 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