Skip to content

setElementVisibleTo returns true even if it does not work #1171

@PlatinMTA

Description

@PlatinMTA

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions