Send

Last Updated2014-12-13
Created At2014-12-13

Sends a panel to a client. Unlike full menus, the handler function will only receive the following actions, both of which will have null for a menu, and the client as param1. MenuAction_Select (param2 will be the key pressed) MenuAction_Cancel (param2 will be the reason) Also, if the menu fails to display, no callbacks will be called.

native bool Send(int client, MenuHandler handler, int time)

Parameters

int client
A client to draw to.
MenuHandler handler
The MenuHandler function to catch actions with.
int time
Time to hold the menu for.

Return Value

bool True on success, false on failure.