- Documentation
- Server functions
- isElementVisibleTo
Function
isElementVisibleTo
Checks whether an element is visible to a player (see setElementVisibleTo).
Syntax
bool isElementVisibleTo(element theElement, element visibleTo)Arguments
theElementelement- The element.
visibleToelement- A player or another element.
Returns
true if visible.
Example
if not isElementVisibleTo(blip, player) then
setElementVisibleTo(blip, player, true)
end