Description
Describe the bug
In some cases, isElementWithinMarker returns false. However, it should return true. This occurs with markers created serverside, and isElementWithinMarker created also serverside (I say that because it could be related with #516
To reproduce
- Change your MTA nickname to "Test"
- Execute next code
function myTestBug()
local player = getPlayerFromName("Test")
local x,y,z = getElementPosition(player)
local marker = createMarker( x,y,z, "cylinder", 20.0, 255, 0, 0, 255)
if isElementWithinMarker(player, marker) then
outputChatBox("Works fine!", player, 0, 255, 0)
else
outputChatBox("Fail detected!", player, 255, 0, 0)
end
end
Expected behaviour
If isElementWithinMarker is working properly, you should see Works fine!, but in chatbox it showed Fail detected!
Screenshots
N/A
Version
Server 1.5.6 Linux
Client mtasa-1.5.6-rc-16588
Additional context
N/A