Skip to content

lobbymenu:AddButton

CritteRo edited this page Jul 18, 2021 · 1 revision

lobbymenu:AddButton

Type: Event Trigger

Usage: TriggerEvent('lobbymenu:AddButton', _id, _buttonParams, _text, _rightText, _showRockStarSymbol, _rightSymbol, _buttonEvent)

Params:

  • _id :: Existing menu ID where you want to add the button.
  • _buttonParams :: general purpose variable that will be sent to the specified event. Any.
  • _text :: Button text. String.
  • _rightText :: Button right Text. String.
  • _showRockStarSymbol :: Toggles R* symbol on the button. Bool.
  • _rightSymbol :: Toggles various symbol on the right side, instead of _rightText. 0 = disable. Integer.
  • _buttonEvent :: Client-side event that will be triggered when this button is used. String.

Notes:

  • Using the button will basically do a TriggerEvent(_buttonEvent, _buttonParams). You can create your own handlers. _buttonParams var can be set to an array, or anything else.
  • _rightSymbol uses:
    • 0 = shows raw rightText. 1 = Star symbol, 2 = skull, 3 = race flag, 4 = shield with cross(TDM?), 5 = multiple skulls, 6 - blank, 7 = castle, 9 = parachute, 10 = car with explosion.

Clone this wiki locally