notify
Last updated
Last updated
ps.notify(text, type, time)
Displays a notification to the player using the configured notification system.
Parameters:
text
(string): The notification message
type
(string, optional): Notification type. Defaults to 'info'
Common types: 'info'
, 'success'
, 'error'
, 'warning'
time
(number, optional): Duration in milliseconds. Defaults to 5000
Returns:
None
Example:
-- Basic notification
ps.notify("Hello World!")
-- Success notification with custom duration
ps.notify("Task completed successfully!", "success", 3000)
-- Error notification
ps.notify("Something went wrong!", "error")