mtasa-blue
mtasa-blue copied to clipboard
Server side markers with size < 1.5 don't trigger event
Describe the bug Only server side markers with size less 1.5 don't trigger events like onMarkerHit and onMarkerLeave, ~~trigger this evetns only one time after create marker and without diffrence if any element is in marker or no, "hitElement" is strange userdata.~~ When element enter or leave from marker, event isn't triggered.
To reproduce
local m = createMarker(0,0,3,'cylinder',1.0,255,0,255,255);
addEventHandler('onMarkerHit', m, function(he,md)
print('hit', he,md);
end);
addEventHandler('onMarkerLeave', m, function(he,md)
print('leave', he, md);
end);
Expected behaviour Fix server side marker events with size < 1.5
Screenshots

(Z axis does not matter in this case)
Version 1.5.6
Additional context
Just encountered this issue myself. Is this a new bug or has it been there all along?
Just encountered this issue myself. Is this a new bug or has it been there all along?
Sounds new, never experienced it before.
I think this bug is new, because i don't remember that i experienced it.
What is the exact server version?
v1.5.6-release-16588
Can confirm, issue still persists. Server-side isElementWithinMarker and getElementsWithinColShape don't return correct values as well when it comes to markers < 1.5 in size. I did a little research and it seems the collision of markers are below the markers themselves.
