- Documentation
- Client events
- onClientPlayerMarkerHit
Event
onClientPlayerMarkerHit
A player entered a marker, in this game. The same as onClientMarkerHit, but the source is the player, so you can attach the handler to localPlayer.
Handler
addEventHandler("onClientPlayerMarkerHit", root, function(markerHit, matchingDimension) ... end)Parameters
markerHitmarker- The marker.
matchingDimensionbool- Whether in the same dimension.
Source
source is the player.
Example
addEventHandler("onClientPlayerMarkerHit", localPlayer, function(marker, dim)
if dim then outputChatBox("Znacznik typu " .. getMarkerType(marker)) end
end)
See also
onClientPlayerMarkerLeaveA player left a marker, in this game. The source is the player.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.