Server Events

Server All Organizations members notifications

🔹 pinkFrog_organizations:sendMessageToAllMembers

This server-side event sends a notification to all online members of a specific organization.

Usage

TriggerEvent('pinkFrog_organizations:sendMessageToAllMembers', message, type)

Parameters:

  • message (string) – The text content of the notification.

  • type (string) – The type of notification. It depends on your configured notify system (info, error, warning).

Example:

TriggerEvent('pinkFrog_organizations:sendMessageToAllMembers', 'Police is near the bank!', 'error')

All online members of the organization will receive the message with the style/type defined (e.g. error, success, info, etc.).

✅ Use this for:

  • Warnings (e.g. raids, police presence)

  • Roleplay coordination messages

  • System alerts or Crime Leader announcements

Last updated