SetPickupVisibility

From Onset Developer Wiki
Revision as of 07:58, 13 July 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetPickupVisibility

Type: Function
Context: Server
Introduced: v1.0

Description

Set the pickup visibility for players.

Syntax

SetPickupVisibility(pickup, player, bVisible)

Parameters

  • pickup
    The pickup identifier.
  • player
    The player identifier.
  • bVisible
    false to hide it for the player.

Return Value

  • Returns true on success.

Example

if GetPlayerHealth(playerId) > 90 then
    SetPickupVisibility(pickupId, playerId, false)
end

See also