ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. textDisplayRemoveObserver

Function

textDisplayRemoveObserver

ServerText displaysIdentical to MTA:SA

Hides a display from a player.

Syntax

bool textDisplayRemoveObserver(textdisplay display, player playerToRemove)

Arguments

displaytextdisplay
The display.
playerToRemoveplayer
The player.

Returns

true on success.

Example

local display = textCreateDisplay()
addEventHandler("onPlayerWasted", root, function()
    textDisplayRemoveObserver(display, source)
end)

See also