Notifications
📢 Laptop Notifications
Event: kartik-laptop:client:notify
kartik-laptop:client:notifyUse this event to display notifications inside the laptop UI.
Triggering a Notification
Basic Notification
TriggerEvent("kartik-laptop:client:notify", "Hello World!")Notification Types
TriggerEvent("kartik-laptop:client:notify", "Saved successfully!", "success")
TriggerEvent("kartik-laptop:client:notify", "An error occurred.", "error")
TriggerEvent("kartik-laptop:client:notify", "Please check the form.", "warning")
TriggerEvent("kartik-laptop:client:notify", "Loading...", "info")Visibility-Based Notification
Only shows if the specified app is visible.
TriggerEvent("kartik-laptop:client:notify",
"New dispatch received!",
"info",
"dispatch",
true
)Server → Client Example
TriggerClientEvent("kartik-laptop:client:notify", src,
"Your payment is due.",
"warning"
)Last updated