RangeR.. Posted July 15, 2015 Share Posted July 15, 2015 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) Link to comment
iMr.Dawix~# Posted July 15, 2015 Share Posted July 15, 2015 you just need this 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) showCursor(true) toggleControl("chatbox", false) fadeCamera(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") and delete the trigger from server side 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