πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

Triggers

Notification Trigger

Parameters

  • title: string - Title of the notification
  • message: string - Message content
  • time: int - Duration in milliseconds (ex: 5000 for 5 seconds)
  • type: string - Type of notification: "success", "error", "warning" or "info"

Client Side

Use this trigger from a client file:

TriggerEvent("bit-notifications:open", title, message, time, type)

Example:

TriggerEvent("bit-notifications:open", "Success", "Item purchased successfully!", 5000, "success")

Server Side

Use this trigger from a server file:

TriggerClientEvent("bit-notifications:open", src, title, message, time, type)

Parameters:

  • src: ID of the player

Example:

TriggerClientEvent("bit-notifications:open", source, "Warning", "You don't have enough money", 5000, "warning")

Store Announcements

Commands

Players with the configured job can use these commands to send open/close announcements to all players:

Open Store

/openstore [message]

Example:

/openstore We are now open! Come visit us!

Close Store

/closestore [message]

Example:

/closestore We are closed for today. See you tomorrow!

The announcement will display the store's image, name, and custom message to all players on the server.