RoomService v2.3.1
Loading...
Searching...
No Matches
RoomService.SetVoteskip Class Reference

Lua function to enable or disable voteskip in the lobby.

Member Function Documentation

◆ Implementation()

void RoomService.SetVoteskip.Implementation ( bool enabled)
inlineprivate

Usage:

Lua function to enable or disable voteskip in the lobby.
Definition RoomServiceLuaFunctions.cs:481
Definition MyPluginInfo.cs:2
Parameters
enabledTrue to enable voteskip; false to disable it.

Source Code

496 {
497 if (!RoomServiceUtils.IsOnlineHost())
498 {
499 return;
500 }
501
502 ChatApi.SendMessage($"/vs {(enabled ? "on" : "off")}");
503 }