xRaM Posted May 13, 2018 Share Posted May 13, 2018 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
AHMED MOSTAFA Posted May 13, 2018 Share Posted May 13, 2018 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 ] Link to comment
xRaM Posted May 16, 2018 Author Share Posted May 16, 2018 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now