OnPlayerMarkerLeave

From Multi Theft Auto: Wiki
Revision as of 02:14, 27 September 2018 by Botder (talk | contribs)
Jump to navigation Jump to search

This event is triggered when a player leaves the area of a marker.

Parameters

marker markerLeft, bool matchingDimension

Source

The source of this event is the player that left the marker.

Example

This example will output the name of the player that has left a specific marker to the chatbox.

-- Create our marker
marker = createMarker(1248,2012,123,"corona",7,255,255,255,255)

function someoneLeftMarker(markerLeft,matchingDimension)
   -- Output our message
   outputChatBox(getPlayerName(source).." has left the marker!",getRootElement(),255,0,0)
end
-- Add an event handler to trigger our function
addEventHandler("onPlayerMarkerLeave",marker,someoneLeftMarker)

See Also

Player events


Event functions