Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.hook.PlayerChat

S๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

๐Ÿ”— External
hook.add("PlayerChat", "name", function(ply, text, team, isdead) end)
View on GitHub|lua/starfall/libs_sh/hook.lua:300
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Called when a chat message is printed your chat window (chip owner only)

Parameters

NameTypeDescription
plyPlayerPlayer that said the message
textstringThe message
teambooleanWhether the message was team only
isdeadbooleanWhether the message was send from a dead player

Returns

TypeDescription
booleanReturn true to hide the message. Can only be done for the owner of the chip

Examples

No examples available.

Used In

No usages found in the codebase.