You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: