Skip to main content

Vote.StartAndWait

Optional integration

This method requires Callvote.

Starts a vote and waits until it is completed.

Syntax

Vote.StartAndWait "question" @player_asking? *options...

Returns

text value

Arguments

NameRequiredTypeDescription
questionYesAny text e.g. "Hello, World!"
player askingNoPlayer value e.g. @player, with EXACTLY 1 player.Use _ if there isn't a specific player asking the question.
optionsYesa reference to VoteOption object.The options for the vote.

Details

It also returns the option key that won. If it was a tie, "tie" will be returned.

On a running server

Use serhelp Vote.StartAndWait to inspect the reference generated by your installed SER version.