This page describes chat API methods
Last updated 5 years ago
chatSend(player, string)
Send message to player.
0 if successful, -1 if invalid
oak.cmd('testmsg', async(pid) => { oak.chatSend(pid, 'Testovací zpráva') })
chatBroadcast(string)
Broadcast message to players.
// TODO
Type
Description
player
Player ID
string
Message