Victor214 Posted January 5, 2012 Share Posted January 5, 2012 i'm doing an elevator script, I'm at the easyer part, but it isn't working =X what should happen: when the player goes on the marker, the gui should appear what is the problem: it isn't appearing when the player goes on the marker =X function nome() Maingui = guiCreateWindow(390,70,232,350,"Select Floor",false) abutton = guiCreateButton(56,247,135,45,"1",false,Maingui) bbutton = guiCreateButton(55,156,135,45,"2",false,Maingui) cbutton = guiCreateButton(52,70,135,45,"3",false,Maingui) guiSetVisible(Maingui, false) end addEventHandler("onClientResourceStart",resourceRoot, nome) mymarker = createMarker(591, -3417, 61.5, "cylinder", 1, 255, 255, 255, 140) function Visible(thePlayer) guiSetVisible(Maingui, true) end addEventHandler("onMarkerHit", mymarker, Visible) Link to comment
Castillo Posted January 5, 2012 Share Posted January 5, 2012 function nome() Maingui = guiCreateWindow(390,70,232,350,"Select Floor",false) abutton = guiCreateButton(56,247,135,45,"1",false,Maingui) bbutton = guiCreateButton(55,156,135,45,"2",false,Maingui) cbutton = guiCreateButton(52,70,135,45,"3",false,Maingui) guiSetVisible(Maingui, false) end addEventHandler("onClientResourceStart",resourceRoot, nome) mymarker = createMarker(591, -3417, 61.5, "cylinder", 1, 255, 255, 255, 140) function Visible(thePlayer) if (thePlayer == localPlayer) then guiSetVisible(Maingui, true) end end addEventHandler("onClientMarkerHit", mymarker, Visible) 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