Skip to content

critMenu.CreateTosMenu

CritteRo edited this page Jul 3, 2021 · 1 revision

critMenu.CreateTosMenu

Usage:

TriggerEvent('critMenu.CreateTosMenu', _menuID, _menuTitle, _menuText, _acceptButton, _denyButton)

Params:

  • _menuID :: The unique ID of the menu.
  • _menuTitle :: The menu Title.
  • _menuText :: The entire text body. Can be formatted using line breaks like \n, or colors: ~g~, ~r~, ~b~ etc.
  • _acceptButton :: Text displayed as the Accept button.
  • _denyButton :: Text displayed as the Deny button.

Notes:

  • critMenu.Check.TosAccepted event will trigger when the player accepts the TOS. critMenu.Check.TosDenied is used for TOS denial.
  • I recommend creating the TOS body using multiple variables, and chaining them like this: _menuText = tosVar1.."\n\n"..tosVar2.."\n\n"..tosVar3(Lua example)

Screenshot:

Clone this wiki locally