- Documentation
- Client events
- onClientMarkerLeave
Event
onClientMarkerLeave
An element left a marker, in this game. It also happens when the element disappears or is moved out of the marker.
Handler
addEventHandler("onClientMarkerLeave", root, function(leftElement, matchingDimension) ... end)Parameters
leftElementelement- The element that left.
matchingDimensionbool- Whether in the same dimension.
Source
source is the marker.
Example
addEventHandler("onClientMarkerLeave", root, function(el)
if el == localPlayer then outputChatBox("Wyszedłeś ze znacznika") end
end)
See also
onClientMarkerHitAn element entered a marker, in this game. Works for markers from the server and ones created on the client. Players, vehicles, peds, objects, pickups and other markers are checked every 100 ms. Acheckpointmarker is a circle with no height limit, the other types are a sphere with a radius equal to the marker size.onClientPlayerMarkerLeaveA player left a marker, in this game. The source is the player.