I want to make a script that creates a marker and when the player stands on it, the marker will show him a message in chat ... how can I do it? i make this but dosnt work
createMarker ( 2492.6416015625, -1667.4169921875, 13.34375, "cylinder", 1.5, 255, 255, 0, 170, source )
function MarkerHit ( hitPlayer, matchingDimension )
outputChatBox ( getPlayerName(hitPlayer) .. " You are now in the marker 1" )
end
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )