Jump to content

Question about setElementVisibleTo


Backsage

Recommended Posts

Does setElementVisibleTo work with peds, vehicles, and objects? According to https://wiki.multitheftauto.com/wiki/ClearElementVisibleTo it doesn't work with those elements. I've even tried testing to see if it works with those elements and it doesn't seem to. It seems to, according to clearElementVisibleTo, only work with markers, blips, and radar areas. Can anyone confirm this? Is there any other elements compatible with setElementVisibleTo and clearElementVisibleTo or is it just those three?

Link to comment

The elements in MTA are listed here, and they are:

So excluding elements like gui, browser, fonts etc the following remain:

And since the visibility has a meaning only in serverside we have

but i can't see why the function should logically work with some... like server console

17 hours ago, Backsage said:

I've even tried testing to see if it works with those elements and it doesn't seem to.

the wiki states  This is because these objects are required for accurate sync so we do not have players, vehicles, peds (not sure but you stated the above so i assume is true), objects.

So the elements that work with this function may be these:

Still, i'm to lazy to test

Edited by LoPollo
  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...