xRaM

[HELP] a nub small problem!

Recommended Posts

Error : 

Bad argument @'guiGetVisible' [Expected gui-elemt at argument 1, got nil]

Code :

function requestViewunitGUI()
    if (guiGetVisible(unitConWin)) then
        for ind, ent in pairs(windows) do
            guiSetVisible(ent, false)
        end
        showCursorMTA(false)
        cursor = 0
    else
        guiSetInputMode("no_binds_when_editing")
        triggerServerEvent("unit.vg", root)
    end
end
bindKey("F6", "down", requestViewunitGUI)

 

Share this post


Link to post
11 hours ago, xRaM said:

Bad argument @'guiGetVisible' [Expected gui-elemt at argument 1, got nil]


the gui element which its name is unitConWin is not in your design codes [ unitConWin  is a nil ]

Share this post


Link to post
On 5/13/2018 at 00:33, killerProject said:


the gui element which its name is unitConWin is not in your design codes [ unitConWin  is a nil ]

um, leme check sec

Share this post


Link to post

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.