Backsage Posted November 14, 2016 Share Posted November 14, 2016 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
LoPollo Posted November 14, 2016 Share Posted November 14, 2016 (edited) The elements in MTA are listed here, and they are: Spoiler Player Ped Vehicle Object Pickup Marker Collision shape Blip Radar area Projectile Team Server console GUI widgets: Button Checkbox Combobox Edit field Gridlist Memo Progress bar Radio button Scrollbar Scrollpane Static image Tab panel Tab Text label Window TXD DFF COL Sound Material Texture Shader DX font GUI font Weapon Camera Effect Browser Light Searchlight So excluding elements like gui, browser, fonts etc the following remain: Spoiler Player Ped Vehicle Object Pickup Marker Collision shape Blip Radar area Projectile Sound Material Texture Shader Weapon Light Searchlight And since the visibility has a meaning only in serverside we have Spoiler Player Ped Vehicle Object Pickup Marker Collision shape Blip Radar area Team Server console 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: Spoiler Pickup Marker Collision shape Blip Radar area Team (???) Server console (?????) Still, i'm to lazy to test Edited November 14, 2016 by LoPollo 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now