Skip to content

onPlayerChat

Andrew McWatters edited this page May 17, 2020 · 9 revisions

onPlayerChat() Shared

The onPlayerChat callback is ran when a player says something, either with the say console command, or in the chat HUD element.

Source

game/client/init.lua

Parameters

Name Type Description
player player Player who spoke
message string Chat message
Clone this wiki locally