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

Function

setPlayerBlipVisible

Server and clientBlipsTrilogy Hub only

Shows or hides one player's map icon.

Syntax

bool setPlayerBlipVisible(player thePlayer, bool visible)

Arguments

thePlayerplayer
The player.
visiblebool
true shows, false hides.

Returns

true on success.

Example

addCommandHandler("ukryj", function(player)
    setPlayerBlipVisible(player, not isPlayerBlipVisible(player))
end)

See also