Cookie.SetPrefabMenu Method

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

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

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

Parameters

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.