Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isElementWithinMarker returns false also in serverside #870

Open
javinotfound opened this issue Apr 15, 2019 · 0 comments
Open

isElementWithinMarker returns false also in serverside #870

javinotfound opened this issue Apr 15, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@javinotfound
Copy link

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

@javinotfound javinotfound added the bug Something isn't working label Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant