Mtasa-blue: setElementVisibleTo returns true even if it does not work

Created on 28 Nov 2019  路  1Comment  路  Source: multitheftauto/mtasa-blue

Describe the bug
When using setElementVisibleTo on things that you can't change the visibility of (like vehicles, objects or custom elements) you will get a true returned by the function, even tho it should return false

To reproduce

Just run this:

local veh = createVehicle(421, 2104.2, -1734.4, 13.6)
outputChatBox(tostring(setElementVisibleTo(veh, root, true)))
outputChatBox(tostring(setElementVisibleTo(veh, root, false)))

Expected behaviour
This should return false as it does not work

Version
Windows 10 Client: v1.5.7-release-20348
Windows 10 Server: v1.5.7-realease-20320

bug

Most helpful comment

Oops, I thought this was resolved on master but it's on that guy's fork. I'll test it later and merge.

>All comments

Oops, I thought this was resolved on master but it's on that guy's fork. I'll test it later and merge.

Was this page helpful?
0 / 5 - 0 ratings