RdX Posted May 10, 2014 Share Posted May 10, 2014 السلام عليكم ورحمة الله وبركاته انا ودي تسأأعدوني و اسف اني كثرت طلبأأتي انا سويت bindkey لل مود لكن لمن ااجي اغير الزر لزم اخش الملف و اعدل و قورشه انا ابيه يكون موجود في settings حقي السكربت زي كذا ابيك يقولي bindkey و انا اختار الزر من settings Link to comment
RdX Posted May 10, 2014 Author Share Posted May 10, 2014 كود فتح النافذه و اغلاقها bindKey("F7", "down", function() if guiGetVisible( wnd ) then guiSetVisible(wnd, false) showCursor(false) else guiSetVisible(wnd, true) end end ) Link to comment
EH10 Posted May 10, 2014 Share Posted May 10, 2014 ضـيـفة فـي meta.xml * "*BindKey" value="F7" desc="زر فـتح الـنافذة" /> * Example , مـثال Link to comment
jafar Posted May 10, 2014 Share Posted May 10, 2014 أول شيء ضيف ف الميتا : "*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
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