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: 43ms

DB GetPage 4
Generate Html 6
SaveChanges (1) 11
Render Body 0
Render Sidebar 19