Skip to content

Interaction Functions

Functions related to in-game communication and interaction.


sendchat

Sends a chat message to the game chat.

Lua
sendchat(message)

Parameters: - message (string): Message to send

Example:

Lua
1
2
3
4
5
-- Normal message
sendchat("Hello from PolyHack!")

-- Using newlines to fake broadcast messages
sendchat("\n\n\n\n[System]: Server shutdown in 5 minutes.")