Hey Guys,
For the last couple of hours I have been trying to get OnMarkerHit to trigger, I watched multiple youtube videos and tried using the search function here but none of them helped.
The script is a server sided script, This is the code I am using:
marker = createMarker(1514.5, -1678.2, 13, 'cylinder', 1.0, 19, 132, 38, 150)
function markerHit(hitElement)
setElementPosition(hitElement,0, 0, 0)
outputChatBox("Hitting marker")
end
addEventHandler("onMarkerHit", marker , markerHit)
But nothing happens, and I just don't know why. The object hitting the marker is a player.
Hope someone can help me out.
Greetings.
misterk99