Jump to content

طلب فنكش


Recommended Posts

السلام عليكم

اليوم انا ابي افتح الوحه بزر بس احط كود انه تفتح باف 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
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 
) 

مجربته :roll:

:x قسم مو صحيح يرجا من مراقب نقله

Edited by Guest
Link to comment
    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 
    ) 

مجربته :roll:

:x قسم مو صحيح يرجا من مراقب نقله

تفضل

Link to comment
[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
[08:35:05] WARNING: 1287\Client.lua:23: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'F5'] 

انت مستخدم الكود ب جآنب سيرفر وهو كلنت !!!

يعني إذآ كان سيرفر لآزم تحط اور ارقمنت اللاعب الي يصير له

وإذآ كلنت مايحتاج تحطه فتأكد من الميتا

Link to comment
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
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

جرب كذا

bindKey ( "الزر الي يفتح اللوحه", "down", function (   ) 
      guiSetVisible ( اسم اللوحه, not guiGetVisible ( اسم اللوحه ) ) 
      showCursor ( guiGetVisible ( اسم اللوحه ) ) 
end ) 

ولا تنسى تحط تحت اللوحه الي سويتها

guiSetVisible ( اسم اللوحه, false ) 

عشان ماتطلع بوجهك اول ماتشغل المود

والاكواد مجربه وشغاله 100% اذا ماتشغلت عندكـ قلي وش الكلام الي يجيك في الدي بوق

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...