Garry's Mod Wiki

Garry's Mod Wiki

  PrintMessage( number type, string message )

Description

Displays a message in the chat, console, or center of screen of every player.

This uses the archaic user message system (umsg) and hence is limited to 255 characters.

Arguments

1 number type
Which type of message should be sent to the players (see HUD enum)
2 string message
Message to be sent to the players

Example

Prints into every player's chat: "I'm new here."

PrintMessage(HUD_PRINTTALK, "I'm new here.")
Output: I'm new here.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...