Jump to content

تعديل على فري روم


Recommended Posts

السلام عليكم

ابي لوحة الفري روم تفتح فقط في العالم الوهمي 0

ضيفو الكود على الكود ذا

function toggleFRWindow() 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
        hideAllWindows() 
        colorPicker.closeSelect() 
    else 
        showCursor(true) 
        showAllWindows() 
    end 
end 

يعني ابي لوحة الفري روم تفتح لو كنت بالعالم الوهمي 0

Link to comment

function toggleFRWindow( ) 
  if not ( getElementDimension ( localPlayer ) == 0 ) then return end 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
         hideAllWindows() 
         colorPicker.closeSelect() 
         else 
        showCursor(true) 
      showAllWindows() 
   end 
end 
Link to comment

ممكن نفس الشيء مع ذا

bindKey ( "F5" , "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 
) 

ابيه في نفس العالم الوهمي 0

Link to comment
bindKey ( "F5" , "down" , 
function() 
if not ( getElementDimension ( localPlayer ) == 0 ) then return end 
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

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