Garry's Mod Wiki

Player:ChatPrint

Player:ChatPrint( string message )

Description

Prints a string to the chatbox of the client.

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

Arguments

1 string message
String to be printed

Example

Prints "Hello World" to chat of all players

for i, ply in ipairs( player.GetAll() ) do ply:ChatPrint( "Hello World" ) end
Output: Hello World (In chatbox)

Page Links


Special Pages


Wikis

?

Render Time: 28ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 12