Jump to content

[HELP] a nub small problem!


xRaM

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)

 

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