Skip to content

Markers not working properly on 1.7 #4443

@Xenius97

Description

@Xenius97

Describe the bug

Markers are not working correctly following the latest update. If you place them exactly on the ground (z - 1), hit and leave events aren't fired at a scale of 1. Only works when you increase scale eg. to 1.15 or bigger.

MTA_.San.Andreas.2025-09-10.11-46-16.mp4

Steps to reproduce

local marker = createMarker(0, 0, 2, "cylinder", 1, 255, 0, 0, 150)
addEventHandler("onClientMarkerHit", marker, function(hitElement, matchingDimension)
	if getElementType(hitElement) == "player" and matchingDimension then
		outputChatBox("hit marker by " .. getPlayerName(hitElement))
	end
end)

addEventHandler("onClientMarkerLeave", marker, function(hitElement, matchingDimension)
	if getElementType(hitElement) == "player" and matchingDimension then
		outputChatBox("leave marker by " .. getPlayerName(hitElement))
	end
end)

Version

Multi Theft Auto v1.7-untested-25543

Additional context

No response

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions