Jump to content

not working


Bean666

Recommended Posts

hi why it doesn't work when i set another marker's dimension?

local marker = createMarker(2216.41675, -1151.71008, 1025, "cylinder", 1.2, 0, 0, 255, 200) 
setElementDimension(marker, 1) 
setElementInterior(marker, 15) 
  
function gui( hitElement, matchingDimension ) 
if not matchingDimension then return end 
if isPedInVehicle(hitElement) then return; end 
    if getElementType( hitElement ) == "player" then 
     triggerClientEvent(hitElement, "stationGUI", hitElement) 
    end 
end 
addEventHandler("onMarkerHit", root, gui) 

addEvent("stationGUI", true) 
function guishow(player) 
guiSetVisible(classWnd, true) 
showCursor(true) 
end 
addEventHandler("stationGUI",getRootElement(),guishow)  
  

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