{"name":"BIS_fnc_addCommMenuItem","operator":null,"title":"BIS fnc addCommMenuItem","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_addCommMenuItem","revid":376524,"updated":"2025-10-23T22:35:51Z","groups":["Communication Menu"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Add communication menu to the given unit.\n\nThe item will be available in the Communication menu and visualized in comm menu icon area.","syntaxes":[{"syntax":"[owner, itemClass, textArguments, expressionArguments, notification] call BIS_fnc_addCommMenuItem","since":null,"effect":null,"exec":null,"params":[{"name":"owner","type":"Object","optional":false,"default":null,"description":"object to which the item belongs","types":["Object"],"since":null,"text":"**owner**: Object - object to which the item belongs"},{"name":"itemClass","type":"String","optional":false,"default":null,"description":"`CfgCommunicationMenu` class","types":["String"],"since":null,"text":"**itemClass**: String - `CfgCommunicationMenu` class"},{"name":"textArguments","type":"Anything","optional":true,"default":null,"description":"additional info to display in the `text` attribute. `%1` will be replaced by the first array element, `%2` with the second and so on.","types":["Anything"],"since":null,"text":"**textArguments**: Anything - (Optional) additional info to display in the `text` attribute. `%1` will be replaced by the first array element, `%2` with the second and so on."},{"name":"expressionArguments","type":"Anything","optional":true,"default":null,"description":"similar to **textArguments**, just this time in the `expression` attribute.","types":["Anything"],"since":null,"text":"**expressionArguments**: Anything - (Optional) similar to **textArguments**, just this time in the `expression` attribute."},{"name":"notification","type":"String","optional":true,"default":null,"description":"notification class from `CfgNotifications`. Empty string will disabled the notification.","types":["String"],"since":null,"text":"**notification**: String - (Optional) notification class from `CfgNotifications`. Empty string will disabled the notification."}],"returns":{"type":"Number","types":["Number"],"description":"item ID, used in BIS_fnc_removeCommMenuItem","text":"Number - item ID, used in BIS_fnc_removeCommMenuItem"}}],"examples":[{"text":"```sqf\nprivate _supportHeli = [player, \"Support_Request_CAS_Heli\"] call BIS_fnc_addCommMenuItem;\n_supportHeli = [player, \"Support_Request_CAS_Heli\", nil, nil, \"\"] call BIS_fnc_addCommMenuItem; // do not show notification\n```","code":["private _supportHeli = [player, \"Support_Request_CAS_Heli\"] call BIS_fnc_addCommMenuItem;\n_supportHeli = [player, \"Support_Request_CAS_Heli\", nil, nil, \"\"] call BIS_fnc_addCommMenuItem; // do not show notification"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_removeCommMenuItem","Arma 3: Communication Menu"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Communication Menu","Functions","Functions: Local Effect","Introduced with Arma 3 version 0.50"],"docblock":null,"filled_from_docblock":[]}