Skip to content

onPlayerSay

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

onPlayerSay() Server

The onPlayerSay callback is ran on the server when a player says something, either with the say console command, or in the chat HUD element. Returning false from this callback prevents the player from speaking, which can be useful for features like chat commands or profanity filters.

Source

game/server/init.lua

Parameters

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