Skip to content

SetMapIconVisibleFor

Shows an icon to one player, or hides it from them.

Over the icon’s own visible; nil follows it again. Kept while they are connected.

SetMapIconVisibleFor(pid, id, visible)
Parameter Type
pid number the player
id number the icon
visible boolean|nil true, false or nil

boolean - false when the icon or the player is not there

-- the thieves' den shows on the map of the guild's members alone
SetMapIconVisibleFor(pid, denIcon, true)

CreateMapIcon · the Map icons group of the index