Skip to Content
🅿️ peak_garage📕 Client🔔 Eventspeak_hud:notify

peak_hud:notify

This event triggers a notification.

Arguments

  • type: info | success | error | warning | item | teamchat | lifeinvader
    The type of notification.
  • title: string
    The title of the notification.
  • message: string
    The message to display.
  • duration: number?
    (Optional) How long the notification should be shown.
  • customBadge: string? (Optional) Custom badge to display.
  • items: table?
    (Optional) Items to show in the notification. (Only for type item)

Format

TriggerEvent("peak_hud:notify", type, title, message, duration, customBadge, items)

Example

TriggerEvent("peak_hud:notify", "info", "Test", "This is a test notification", 5000) TriggerEvent("peak_hud:notify", "success", "Test", "This is a test notification", 5000) TriggerEvent("peak_hud:notify", "warning", "Test", "This is a test notification", 5000) TriggerEvent("peak_hud:notify", "error", "Test", "This is a test notification", 5000) TriggerEvent("peak_hud:notify", "teamchat", "Override", "This is a test notification", 5000) TriggerEvent("peak_hud:notify", "lifeinvader", "Lifeinvader", "This is a test notification", "Override Game", 5000) TriggerEvent("peak_hud:notify", "item", "Test", nil, 5000, nil, { { label = "Test", value = "test" } })
Last updated on