Chat

This page describes chat API methods

Send message

chatSend(player, string)

Send message to player.

Details
Example

Remarks

Arguments

Type

Description

player

Player ID

string

Message

Returns

0 if successful, -1 if invalid

oak.cmd('testmsg', async(pid) => {
oak.chatSend(pid, 'Testovací zpráva')
})

Broadcast message

chatBroadcast(string)

Broadcast message to players.

Details
Example

Remarks

Arguments

Type

Description

string

Message

Returns

0 if successful, -1 if invalid

// TODO