Ocean Solutions

Notification

Server-side helper to send notifications to a player client

Overview

The Notify export triggers the ocean:client:notify client event on the target player. It accepts either a plain string or a data table, normalising both into the same shape before dispatching.

Functions

Notify

Ocean.Notify(source, data)

Sends a notification to the player identified by source.

  • source: number — the player server ID
  • data: string | table
    • When data is a string it is automatically wrapped as { description = data }
    • When data is a table it is passed through as-is

Example

Ocean.Notify(source, { title = 'Ocean Solutions', description = 'Ocean Solutions', type = 'success', duration = 4000 })

On this page