Lua function to enable or disable voteskip in the lobby.
◆ 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
-
| enabled | True 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 }