-
-
Notifications
You must be signed in to change notification settings - Fork 73
onPlayerSay
Andrew McWatters edited this page May 17, 2020
·
5 revisions
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.
Name | Type | Description |
---|---|---|
player |
player | Player who spoke |
message |
string | Chat message |
Callbacks
- onAddonMounted
- onAddonUnmounted
- onMainMenuActivate
- onMainMenuClose
- onNPCSpawn
- onPlayerChat
- onPlayerConnect
- onPlayerDisconnect
- onPlayerInitialSpawn
- onPlayerSay
- onPlayerSpawn
- onPlayerUse
- onReloadImage
- onReloadScript
- onReloadSound
- quit
- update
Classes
- canvas
- character
- color
- concommand
- context
- convar
- entity
- fullscreencanvas
- host
- map
- networkvar
- payload
- player
- scheme
- shader
- sprite
- tween
- typelenvalues
- vector
Interfaces and Libraries
Panels
- box
- button
- checkbox
- closebutton
- commandbutton
- commandbuttongroup
- dropdownlist
- dropdownlistitem
- dropdownlistitemgroup
- frame
- frametab
- frametabgroup
- frametabpanel
- frametabpanels
- imagepanel
- label
- panel
- passwordtextbox
- progressbar
- radiobutton
- radiobuttongroup
- rootpanel
- scrollablepanel
- scrollbar
- slider
- tabbedframe
- text
- textbox
- textboxautocompleteitemgroup
- throbber
- viewport