SetCookiePrefabMenu Function

Add a new prefab item to the client cookie settings menu.

Note: This handles everything automatically and does not require a callback

void SetCookiePrefabMenu(Handle cookie, CookieMenu type, const char[] display, function void(int client, CookieMenuAction action, any info, char[] buffer, int maxlen) handler, any info)

Parameters

Handle cookie

Client preference cookie handle.

CookieMenu type

A CookieMenu prefab menu type.

const char[] display

Text to show on the menu.

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

Optional handler callback for translations and output on selection

any info

Info data to pass to the callback.

Errors

Invalid cookie handle.