Hi everyone! Is code correct? When I stand on marker, there's nothing happens
infoMarker = createMarker(2808.621094,-2430.112305,12.62857, "cylinder", 2.0, 255, 0, 0, 150)
function openInfoGui()
if isElementWithinMarker(thePlayer, infoMarker) then
outputChatBox("You are not at the right place!", thePlayer, 255, 0, 0)
end
end
addEventHandler( "openInfoGui", root, openInfoGui )