Jump to content

Help Me !


Recommended Posts

السلام وعليكم

اليوم حبيت اسوي نافذة وحركات وتاثيرات ببي فنكش Pain

بس مشتغل ويقولي في شات : Not GUI Element

ذذ كود فتح نافذة

Open :

  
bindKey("F4","Down", 
function() 
        if lightsWindow then 
            guiSetVisible(lightsWindow,not guiGetVisible(lightsWindow)) 
            showCursor(guiGetVisible(lightsWindow)) 
            guiAddInterpolateEffect( lightsWindow, cx, cy, cw, ch, 0, 0, 0, 0, 2, "OutBounce", "OutInElastic", false ) 
        else 
            guiAddInterpolateEffect( lightsWindow, 0, 0, 0, 0, x, y, w, h, 2, "OutBounce", "OutBounce", true ) 
            showCursor (true) 
            startGui() 
        end 
end, false) 
  
function guiAddInterpolateEffect( ... ) 
    return call( getResourceFromName( "GIE" ), "guiAddInterpolateEffect", unpack( { ... } ) ) 
end 

خطأ او معرف مهم ؟ :?

Link to comment
local screenW, screenH = guiGetScreenSize() 
function startGui () 
    lightsWindow = guiCreateStaticImage(screenW - 623 - 10, (screenH - 443) / 2, 623, 443, "led.png", false) 
    previewStaticImage = guiCreateStaticImage(211, 195, 208, 171, "images/"..currentLight..".jpg", false, lightsWindow) 
  
     lightsComboBox = guiCreateComboBox(201, 113, 233, 200, "Default", false, lightsWindow) 
        for i,light in ipairs (lights) do 
        local id = guiComboBoxAddItem (lightsComboBox,light) 
        if light == currentLight then 
            guiComboBoxSetSelected(lightsComboBox,id) 
        end 
    end 
    addEventHandler("onClientGUIComboBoxAccepted",lightsComboBox,changeLights) 
    
    drawlightsCheckBox = guiCreateCheckBox(205, 141, 35, 30, "", false, false, lightsWindow) 
    guiSetAlpha(drawlightsCheckBox, 0.22) 
    
    local saveChangesButton = guiCreateButton(212, 373, 70, 30, "", false, lightsWindow) 
    guiSetAlpha(saveChangesButton, 0.18) 
    guiSetProperty(saveChangesButton, "NormalTextColour", "FFAAAAAA") 
  
    local closeWindowButton = guiCreateButton(349, 373, 70, 30, "", false, lightsWindow) 
    guiSetAlpha(closeWindowButton, 0.18) 
    guiSetProperty(closeWindowButton, "NormalTextColour", "FFAAAAAA")     
  
    addEventHandler("onClientGUIClick",saveChangesButton,saveChanges,false) 
    addEventHandler("onClientGUIClick",closeWindowButton,closeWindow,false) 
end 

:roll:

Link to comment

ما اعرف السكربت لكن يمكن هو مسوي انه بس للنوافذ .

لكن جرب زي كذا :

local screenW, screenH = guiGetScreenSize() 
lightsWindow = guiCreateStaticImage(screenW - 623 - 10, (screenH - 443) / 2, 623, 443, "led.png", false) 
guiSetVisible(lightsWindow,false) 
function startGui () 
     previewStaticImage = guiCreateStaticImage(211, 195, 208, 171, "images/"..currentLight..".jpg", false, lightsWindow) 
  
     lightsComboBox = guiCreateComboBox(201, 113, 233, 200, "Default", false, lightsWindow) 
        for i,light in ipairs (lights) do 
        local id = guiComboBoxAddItem (lightsComboBox,light) 
        if light == currentLight then 
            guiComboBoxSetSelected(lightsComboBox,id) 
        end 
    end 
    addEventHandler("onClientGUIComboBoxAccepted",lightsComboBox,changeLights) 
    
    drawlightsCheckBox = guiCreateCheckBox(205, 141, 35, 30, "", false, false, lightsWindow) 
    guiSetAlpha(drawlightsCheckBox, 0.22) 
    
    local saveChangesButton = guiCreateButton(212, 373, 70, 30, "", false, lightsWindow) 
    guiSetAlpha(saveChangesButton, 0.18) 
    guiSetProperty(saveChangesButton, "NormalTextColour", "FFAAAAAA") 
  
    local closeWindowButton = guiCreateButton(349, 373, 70, 30, "", false, lightsWindow) 
    guiSetAlpha(closeWindowButton, 0.18) 
    guiSetProperty(closeWindowButton, "NormalTextColour", "FFAAAAAA")     
  
    addEventHandler("onClientGUIClick",saveChangesButton,saveChanges,false) 
    addEventHandler("onClientGUIClick",closeWindowButton,closeWindow,false) 
end 
Link to comment
ما اعرف السكربت لكن يمكن هو مسوي انه بس للنوافذ .

لكن جرب زي كذا :

local screenW, screenH = guiGetScreenSize() 
lightsWindow = guiCreateStaticImage(screenW - 623 - 10, (screenH - 443) / 2, 623, 443, "led.png", false) 
guiSetVisible(lightsWindow,false) 
function startGui () 
     previewStaticImage = guiCreateStaticImage(211, 195, 208, 171, "images/"..currentLight..".jpg", false, lightsWindow) 
  
     lightsComboBox = guiCreateComboBox(201, 113, 233, 200, "Default", false, lightsWindow) 
        for i,light in ipairs (lights) do 
        local id = guiComboBoxAddItem (lightsComboBox,light) 
        if light == currentLight then 
            guiComboBoxSetSelected(lightsComboBox,id) 
        end 
    end 
    addEventHandler("onClientGUIComboBoxAccepted",lightsComboBox,changeLights) 
    
    drawlightsCheckBox = guiCreateCheckBox(205, 141, 35, 30, "", false, false, lightsWindow) 
    guiSetAlpha(drawlightsCheckBox, 0.22) 
    
    local saveChangesButton = guiCreateButton(212, 373, 70, 30, "", false, lightsWindow) 
    guiSetAlpha(saveChangesButton, 0.18) 
    guiSetProperty(saveChangesButton, "NormalTextColour", "FFAAAAAA") 
  
    local closeWindowButton = guiCreateButton(349, 373, 70, 30, "", false, lightsWindow) 
    guiSetAlpha(closeWindowButton, 0.18) 
    guiSetProperty(closeWindowButton, "NormalTextColour", "FFAAAAAA")     
  
    addEventHandler("onClientGUIClick",saveChangesButton,saveChanges,false) 
    addEventHandler("onClientGUIClick",closeWindowButton,closeWindow,false) 
end 

لازم يون تحت startGui تشتغل لوحة وتهضر

وجربت كو حقك وتخربت لوحة :cry:

Link to comment
ولله ما اعرف الكود الكامل حقكـ ..

المهم انه تقدر تستخدمه مع الصور .. بس المشكلة من عندك .. يقلك هذا مو جيو المنت .. عاد شيك ان كل شي صحيح

بحاول احذف صورة واغيره لل Window

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