SetCookieMenuItem Function

Adds a new item to the client cookie settings menu.

Note: This only adds the top level menu item. You need to handle any submenus from the callback.

void SetCookieMenuItem(function void(int client, CookieMenuAction action, any info, char[] buffer, int maxlen) handler, any info, const char[] display)

Parameters

function void(int client, CookieMenuAction action, any info, char[] buffer, int maxlen) handler

A MenuHandler callback function.

any info

Data to pass to the callback.

const char[] display

Text to show on the menu.

Errors

Invalid cookie handle.