Player/ChatPrint

From Garry's Mod
Revision as of 16:50, 20 March 2017 by NeatNit (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Player:ChatPrint( )

Contents

Description

Prints a string to the chatbox of the client.

WARNING

Just like the usermessage library, this function is affected by the 255 byte limit!

Arguments

string message

String to be printed

Examples

Example

Prints "Hello World" to chat of all players

for k, ply in pairs(player.GetAll()) do
	ply:ChatPrint("Hello World")
end

Output:

Hello World (In chatbox)
Personal tools
Navigation