VoteMenu Function

Broadcasts a menu to a list of clients. The most selected item will be returned through MenuAction_End. On a tie, a random item will be returned from a list of the tied items.

Note that MenuAction_VoteEnd and MenuAction_VoteStart are both default callbacks and do not need to be enabled.

bool VoteMenu(Handle menu, int[] clients, int numClients, int time, int flags)


Handle menu

Menu Handle.

int[] clients

Array of clients to broadcast to.

int numClients

Number of clients in the array.

int time

Maximum time to leave menu on the screen.

int flags

Optional voting flags.

Return Value

True on success, false if this menu already has a vote session in progress.


Invalid Handle, or a vote is already in progress.