Jump to content

تعديل كود


Recommended Posts

السلام عليكم 
ممكن مساعدة في اظهار واخفاء اليبل ؟

 

GUIEditor = {
    button = {},
    edit = {},
    label = {}
}
function GUIWIND()
 GUIEditor.label[1] = guiCreateLabel(556, 310, 850, 474, "", false, GUIEditor.label[1])
    GUIEditor.button[1] = guiCreateButton(0.30, 0.68, 0.06, 0.04, "Send", true, GUIEditor.label[1])
    guiSetFont(GUIEditor.button[1], "default-bold-small")
    guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FEFF3737")


    GUIEditor.edit[1] = guiCreateEdit(0.30, 0.39, 0.14, 0.04, "", true, GUIEditor.label[1])
    guiSetAlpha(GUIEditor.edit[1], 0.00)


    GUIEditor.edit[2] = guiCreateEdit(0.30, 0.51, 0.14, 0.04, "", true, GUIEditor.label[1])
    guiSetAlpha(GUIEditor.edit[2], 0.00)


    GUIEditor.edit[3] = guiCreateEdit(0.52, 0.38, 0.20, 0.24, "", true, GUIEditor.label[1])
    guiSetAlpha(GUIEditor.edit[3], 0.40)

end


 

Link to comment
24 minutes ago, N3xT said:

guiSetVisible(GUIEditor.label[1], false)

 

p_165737bbf1.png

ذا الكود 
 

bindKey("f5","down",function()
  if (guiGetVisible(GUIEditor.label[1]) == true) then
    guiSetVisible(GUIEditor.label[1], false)
    showCursor(false)
  else
    guiSetVisible(GUIEditor.label[1], true)
    showCursor(true)
  end
end)

 

خلاص عرفت فين المشكلة

وحليتها واشتغلت شكرا علي مساعدتك  
N3xT

طبعا سبب الي سبب ان 

guiSetVisible
متقومش بوظيفتها هوا
addEventHandler ( "onResourceStart"...
وبتالي خليت 
فنشكشن الجيو مشتغلش

 

Edited by Kas7
  • Confused 1
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...