ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getElementAlpha

Function

getElementAlpha

Server and clientElementsIdentical to MTA:SA

Returns the element's alpha (0 invisible, 255 opaque).

Syntax

int getElementAlpha(element theElement)

Arguments

theElementelement
The element.

Returns

Alpha 0-255.

Example

if getElementAlpha(player) < 255 then
    outputChatBox("Jesteś niewidzialny.", player)
end

See also