multitheftauto/mtasa-blue

Markers not working properly on 1.7

Closed this issue · 7 comments

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.

Maybe caused by #3436 @Proxy-99

This is old issue #923 non related to my pr

This is old issue #923 non related to my pr

Before this update it worked as well.
1.6 works too for me without any issue.

I will check it later today

The only problem in 1.6 is that you need to add an extra check, because if you're above or below, it still detects it. But this can be fixed with a script.

MTA_.San.Andreas.2025-09-10.12-00-32.mp4

I can confirm that no event triggers on mtasa-1.7-untested-25543-20250910
But triggers on v1.6-release-23374

Tested and confirmed fixed by 71e3f33