Hi guys, i was trying to make a gui script but showCursor gui is not working.
Client.lua
local x, y = guiGetScreenSize()
local cX, cY = (x / 2) - (348 / 2), (y / 2) - (356 / 2)
spawnscreen = guiCreateWindow(514, 104, 286, 391, "Spawn Panel", false)
guiWindowSetSizable(spawnscreen, false)
guiSetProperty(spawnscreen, "CaptionColour", "FF00FF00")
gridlist1 = guiCreateGridList(9, 22, 115, 110, false, spawnscreen)
guiGridListAddColumn(gridlist1, "CLASSES", 0.9)
gridlist2 = guiCreateGridList(9, 142, 115, 235, false, spawnscreen)
guiGridListAddColumn(gridlist2, "TEAMS", 0.9)
spawnmemo[1] = guiCreateMemo(132, 22, 144, 110, "", false, spawnscreen)
spawnstaticimage[1] = guiCreateStaticImage(133, 143, 143, 169, "mtalogo.png", false, spawnscreen)
spawnbutton[1] = guiCreateButton(134, 317, 142, 60, "SPAWN", false, spawnscreen)
guiSetProperty(spawnbutton[1], "NormalTextColour", "FF00FF00")
guiSetVisible(spawnscreen, false)
function showLogin()
guiSetVisible(login_wnd, true)
showCursor(true)
toggleControl("chatbox", false)
fadeCamera(false)
end
addEvent("showgui", true)
addEventHandler("showgui", root, showLogin)
Server.lua
function work()
triggerClientEvent(source, "showgui", source)
end
addEventHandler("onPlayerJoin", root, work)