From Multi Theft Auto: Wiki
Revision as of 18:48, 5 October 2009 by 50p (talk | contribs)

This event is triggered when a player enters a marker created using createMarker.


player hitPlayer, bool matchingDimension
  • hitPlayer: The player that hit the marker
  • matchingDimension: true if the player is in the same dimension as the marker he hit


The source of this event is the marker that got hit by the player.


This code will output a message to the chatbox whenever any player walks into any marker.

function MarkerHit ( hitPlayer, matchingDimension )
	outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" )
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )

See Also

Client marker events

Client marker functions