Revision Difference
gameevent/hltv_message#560980
<cat>gameevent</cat>⤶
<title>hltv_message</title>⤶
⤶
<structure>⤶
<realm>Client and Menu</realm>⤶
<description>⤶
Called when a message is sent with `tv_msg`⤶
</description>⤶
<fields>⤶
<item type="string" name="text">The Text.</item>⤶
</fields>⤶
</structure>⤶
⤶
# Examples⤶
<example>⤶
<description>This is a basic template with the purpose of including all arguments / table variables to make it easily known which values can be accessed.</description>⤶
<code>⤶
gameevent.Listen( "hltv_message" )⤶
hook.Add( "hltv_message", "hltv_message_example", function( data )⤶
local text = data.text -- The Text⤶
⤶
-- Called when a message is sent with tv_msg⤶
⤶
end )⤶
</code>⤶
</example>