Jump to content

مشكلة بسيطة


Recommended Posts

السلام عليكم

ممكن مساعدة

  
GUIEditor = { 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(254, 193, 313, 215, "Test", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FEFFFDFD") 
  
        repair = guiCreateButton(0.18, 0.27, 0.64, 0.55, "r", true, GUIEditor.window[1]) 
        guiSetProperty(repair, "ID", "1") 
        guiSetProperty(repair, "NormalTextColour", "FEFEFDFD")     
  
                guiSetVisible ( GUIEditor.window[1], false ) 
  
  
end) 

Link to comment
  
GUIEditor = { 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(254, 193, 313, 215, "Test", false) 
                guiSetVisible (GUIEditor.window[1], false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FEFFFDFD") 
  
        repair = guiCreateButton(0.18, 0.27, 0.64, 0.55, "r", true, GUIEditor.window[1]) 
        guiSetProperty(repair, "ID", "1") 
        guiSetProperty(repair, "NormalTextColour", "FEFEFDFD")     
  
                guiSetVisible ( GUIEditor.window[1], false ) 
  
  
end) 
  
bindKey ( "F4", "down", -- F4 اختار اسم الزر 
  
function()   
    if guiGetVisible(GUIEditor.window[1]) then 
        guiSetVisible(GUIEditor.window[1], false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
    else 
        guiSetVisible(GUIEditor.window[1], true) 
        showCursor(true) 
        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...