CityRP Documentation Repository

core.derma.cl_notifications

Functions

ClientAddButtons(text, button1, function1, button2, function2, icon, color, dismissable, uid)Source ☍

Shows a notification with up to two clickable buttons. instead of stacking a second one.

Parameters

  • textstring
  • button1string?Tooltip for the first (tick) button.
  • function1(string|table)?Command to run on click, or a table of {label, command} pairs for a submenu.
  • button2string?Tooltip for the second (cross) button.
  • function2(string|table)?Command to run on click, or a table of {label, command} pairs for a submenu.
  • iconstring?
  • colorColor?
  • dismissableboolean?Whether to show a third "dismiss" button.
  • uidstring?A key identifying this notification. A later call with the same uid replaces it
ClientAddCenter(text, icon, color, delayamount)Source ☍

Parameters

  • textany
  • iconany
  • colorany
  • delayamountany
ClientAddCustom(text, icon, color, length)Source ☍

Parameters

  • textany
  • iconany
  • colorany
  • lengthany
ClientAddLegacy(text, type, length)Source ☍

Parameters

  • textany
  • typeany
  • lengthany
ClientAddProgress(uid, text)Source ☍

Parameters

  • uidany
  • textany
ClientDie(uid, delay)Source ☍

Parameters

  • uidany
  • delayany
ClientKill(uid)Source ☍

Parameters

  • uidany

Fields

ClientNOTIFY_CLEANUPSource ☍
ClientNOTIFY_ERRORSource ☍
ClientNOTIFY_EXCLAMATIONSource ☍
ClientNOTIFY_GENERICSource ☍
ClientNOTIFY_HINTSource ☍
ClientNOTIFY_UNDOSource ☍
ClientNOTIFY_WARNINGSource ☍