Triggers and Exports

Internal chat functions that you can use in other scripts

For other scripts to send information to the CHAT, you must use a TriggerEvent, a function that will make the CHAT display the message you want. This has many uses.

The parameters are: playerId, text, title, background. All required.

exports["forge-chat"]:Message(-1, "Test3", "Auto", "background: linear-gradient(270deg, rgb(171 222 0 / 56%) 0%, rgb(255 0 0 / 23%) 46.31%); border: 1px solid rgb(0 0 0 / 40%);")

These types of messages are the ones you can send by adding them to your script, being able to change the color of the label, the title and everything.

Last updated