Skip to main content

Scriptcommands

info

All scriptcommands can be used via rcon or from the ingame console.
If you run them from the ingame console you need to be an admin and prefix the commands with cheat

scriptcommand WBUI2 debug

  • Toggles a debug mode which enables/disables more in depth logging.
    If it is enabled the mod writes A LOT to the shootergamelog!

scriptcommand WBUI2 update

  • Runs a request to the given JsonURL and populates it to the players

scriptcommand WBUI2 clearplayers

  • clears the OpenOnStart playerlist

scriptcommand WBUI2 removekeybind Implant-ID

  • Removes a players custom keybind to open WBUI
  • The player needs to be online for it to work!

scriptcommand WBUI2 setmotd -message="motd title\nmotd message" -duration=15 -icon

  • Sets a new "Message Of The Day"
  • The text in the -message= parameter needs to be between double quotes " "
  • The text before the \n will be displayed in a bigger font
  • The -duration= parameter determines how long the message will be displayed (in seconds)
  • The -icon flag is optional. If included, the message will display an embedded icon image (as defined in the iconurl setting)

scriptcommand WBUI2 settempmotd -message="MOTD title\nMOTD message" -duration=15 -icon

  • Same as WBUI2 setmotd
  • This temporary MOTD remains active until the server restarts or is reset using the command below

cheat scriptcommand WBUI2 settempmotd reset

  • Restores the previous MOTD, removing the temporary one

scriptcommand WBUI2 sendmessage -message="This is a test!" -duration=10 -player=Implant-ID/EOS-ID

  • The text in the -message= parameter needs to be between double quotes " "
  • The -duration= parameter determines how long the message will be displayed (in seconds)
  • The -player= parameter is optional. You can insert a ImplantID or a EOS-ID to send a message only to a specific player