DisplayVote

Last Updated2014-12-13
Created At2014-07-05

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.

native bool DisplayVote(int[] clients, int numClients, int time, int flags = 0)

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

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

Error

A vote is already in progress.