Skip to content

isElementWithinMarker returns false also in serverside #870

Open
@javinotfound

Description

@javinotfound

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

  1. Change your MTA nickname to "Test"
  2. 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

Metadata

Metadata

Assignees

No one assigned

    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