RangeR.. Posted July 15, 2015 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) MTA PLAYER SINCE 2008 Staff at UGC - [uGC]Robin|GIGN Ex Staff AND MEMBER OF WGS(RACE CLAN) EX-OWNER AT POWER-GAMING EX-Leading Staff at SGC EX-FOUNDER of CIG EX-FOUNDER of Sm [stealth] EX-Staff of The Matrix My Community Scripts Private Interiors TIME PLAYED [TAB] Job Command Private Pickups
RangeR.. Posted July 15, 2015 Author Posted July 15, 2015 PLEASE HELP MTA PLAYER SINCE 2008 Staff at UGC - [uGC]Robin|GIGN Ex Staff AND MEMBER OF WGS(RACE CLAN) EX-OWNER AT POWER-GAMING EX-Leading Staff at SGC EX-FOUNDER of CIG EX-FOUNDER of Sm [stealth] EX-Staff of The Matrix My Community Scripts Private Interiors TIME PLAYED [TAB] Job Command Private Pickups
iMr.Dawix~# Posted July 15, 2015 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 My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
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