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 k, ply in pairs(player.GetAll()) do ply:ChatPrint("Hello World") end
Output: Hello World (In chatbox)

Page Links


Special Pages


Wikis

?

Render Time: 31ms

Session 0
DB GetPage 3
Generate Html 5
SaveChanges 8
Render Body 0
Render Sidebar 12