API REFERENCE

IsPlayerInvisible

Checks if a player is currently invisible.

Syntax

local invisible = ONYX.IsPlayerInvisible(playerId)

Parameters

  • playerId (int) — Target player identifier.

Return(s)

invisible (boolean) — true when the player is invisible.

Example(s)

local me = PlayerId()
if ONYX.IsPlayerInvisible(me) then print("invisible") end