Jump to content

Help with this one!


Victor214

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...