ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isElementVisibleTo

Function

isElementVisibleTo

ServerElementsIdentical to MTA:SA

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

See also