Menu.DisplayVote Method

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 DisplayVote(int[] clients, int numClients, int time, int flags)

Parameters

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.

Errors

A vote is already in progress.