Jump to content

ممكن مسأأعده


Recommended Posts

السلام عليكم ورحمة الله وبركاته

انا ودي تسأأعدوني و اسف اني كثرت طلبأأتي

انا سويت bindkey

لل مود لكن لمن ااجي اغير الزر لزم اخش الملف و اعدل و قورشه

انا ابيه يكون موجود في settings

حقي السكربت زي كذا

ابيك يقولي

bindkey و انا اختار الزر من settings

bd85ca552dea70cbd2a2a213d59ec577.png

Link to comment

كود فتح النافذه و اغلاقها

bindKey("F7", "down", 
function() 
if guiGetVisible( wnd ) then 
    guiSetVisible(wnd, false) 
    showCursor(false) 
else 
    guiSetVisible(wnd, true) 
end 
end 
) 

Link to comment

أول شيء ضيف ف الميتا :

"*BindKey" value="F1" desc="" /> 

بعدين داخل المود :

-- Server Side --  
addEventHandler ( "onResourceStart", resourceRoot,  
    function (  ) 
        setElementData ( resourceRoot, "Key", get ( "BindKey" ) ); 
    end 
); 
  
addEventHandler( "onSettingChange", root, 
    function ( setting, _, value ) 
        if setting == "*resourceName.BindKey" then 
            setElementData ( resourceRoot, "Key", value ); 
        end 
    end 
); 

-- Client Side --  
bindKey ( getElementData ( resourceRoot, "Key" ), "down", 
    function (  ) 
        guiSetVisible ( window, not guiGetVisible ( window ) ); 
        showCursor ( guiGetVisible ( window ) ); 
    end 
); 

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...