Weave.IsPlayerInvisible

Checks if a specific player or NPC is trying to hide using invisibility or 0% alpha transparency.

Syntax

Weave.IsPlayerInvisible(player)

Parameters

playernumber

Player ped or network ID

Return(s)

boolean

Example

local targetPed = GetPlayerPed(GetPlayerFromServerId(1))
if Weave.IsPlayerInvisible(targetPed) then
    print("Player is invisible!")
else
    print("Player is visible")
end