textDisplayRemoveObserver | Multi Theft Auto: Wiki Skip to content

textDisplayRemoveObserver

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function removes a player observer of a textdisplay. This stops the player from being able to see textitems that the textdisplay contains.

Syntax

textDisplayRemoveObserver ( )

Code Examples

server

This example creates a new display and a "Hello World" text item for a player. It then removes it from his screen 5 seconds later

display = textCreateDisplay ( ) --create the display
textDisplayAddObserver ( display, thePlayer ) --add an observer
newtextitem = textCreateTextItem ( "Hello World", 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 ) --create our "Hello World" text item
textDisplayAddText ( display, newtextitem ) --add this to the display
setTimer ( textDisplayRemoveObserver, 5000,1, display, thePlayer ) --set a timer to remove this 5 seconds later.