Skip to content

CAU_xChat_fnc_sendMessage

ConnorAU edited this page Oct 13, 2020 · 3 revisions

Arguments: Global Effect: Local

Warning:

This function is deprecated as of A3 1.99+ and only exists to maintain backwards compatibility. Please use the native chat sqf commands.

Definition:

Replaces sqf commands used for printing messages to chat.

Syntax:

  • Command: String - sqf command to perform
    Supported Commands:
  • Arguments: Array
    • Message: String - Text to print to the message feed
    • Sender: Object (Optional, not required for systemChat)
    • ChannelID: Number (6-15) (Optional, only required for custom channels)

Example 1:

["systemChat",["This is systemChat"]] call CAU_xChat_fnc_sendMessage;
["globalChat",["This is globalChat",player]] call CAU_xChat_fnc_sendMessage;
["sideChat",["This is sideChat",player]] call CAU_xChat_fnc_sendMessage;
["commandChat",["This is commandChat",player]] call CAU_xChat_fnc_sendMessage;
["groupChat",["This is groupChat",player]] call CAU_xChat_fnc_sendMessage;
["vehicleChat",["This is vehicleChat",player]] call CAU_xChat_fnc_sendMessage;
["directChat",["This is directChat",player]] call CAU_xChat_fnc_sendMessage;
["customChat",["This is customChat",player,6]] call CAU_xChat_fnc_sendMessage;

Example 2:

// remoteExec a systemChat message to everyone
["systemChat",["This is systemChat"]] remoteExecCall ["CAU_xChat_fnc_sendMessage"];
Clone this wiki locally