Skip to content

Commit

Permalink
Merge pull request #10 from RockySouthpaw/patch-1
Browse files Browse the repository at this point in the history
Fixed missing bracket and a parentheses
  • Loading branch information
TasoOneAsia authored Mar 12, 2021
2 parents 2e559e0 + 9ac334b commit bae1664
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ T-Notify also allows for the addition of custom user-specified classes in the cu
In order to use a custom style when invoking a notification, the property ``custom`` ***MUST*** also be set to true. We'll use the example styling for this snippet:

```lua
TriggerClientEvent('t-notify:client:Custom', ServerID, {
style = 'example',
duration = 6000,
title = 'Markdown Formatting Example',
message = '``Code``\n **Bolded Text** \n *Italics Yo* \n # Header 1\n ## Header 2\n',
sound = true,
custom = true
TriggerClientEvent('t-notify:client:Custom', source, {
style = 'example',
duration = 6000,
title = 'Markdown Formatting Example',
message = '``Code``\n **Bolded Text** \n *Italics Yo* \n # Header 1\n ## Header 2\n',
sound = true,
custom = true
})
```

*This snippet produces the following notification:*
*This snippet produces the following notification and is triggered server side:*

![Example Styled Notification](https://tasoagc.dev/u/0tiWNE.png)

Expand Down Expand Up @@ -280,4 +281,4 @@ TriggerClientEvent('t-notify:client:Custom', ServerID, {

This code snippet produced the following notification:

![Markdown Example](https://tasoagc.dev/u/RyYTAX.png)
![Markdown Example](https://tasoagc.dev/u/RyYTAX.png)

0 comments on commit bae1664

Please sign in to comment.