From the reference libraryRedM

Notification <BadgeServer/>

jo_libs/modules/notification/server.md

Notification <BadgeServer/>

A library to display notification on the player screen server side

JO Functions > jo.notif.left()

<!-- @include: ./slots/headers.md#server|jo.notif.left -->

Notification on the left with title, icon, color and sound <br>

<!-- @include: ./slots/descriptions.md#server|jo.notif.left -->

JO Functions > jo.notif.left() > Syntax

jo.notif.left(source, title, text, dict, icon, color, duration, soundset_ref, soundset_name)

JO Functions > jo.notif.left() > Parameters

source : integer

The source ID of the player

title : string

The title of the notification

text : string

The text of the notification

dict : string

The dictionnary of the icon

icon : string

The name of the icon

color : string <BadgeOptional />

The color of the text <br> default : "COLOR_WHITE"

duration : integer <BadgeOptional />

The duration of the notification in ms <br> default: 3000

soundset_ref : string <BadgeOptional />

The dictionnary of the soundset <br> default : "Transaction_Feed_Sounds"

soundset_name : string <BadgeOptional />

The name of the soundset <br> default : "Transaction_Positive"

<!-- @include: ./slots/examples.md#server|jo.notif.left -->

<!-- @include: ./slots/footers.md#server|jo.notif.left -->


JO Functions > jo.notif.print()

<!-- @include: ./slots/headers.md#server|jo.notif.print -->

A function to print in the client console from the server side <br>

<!-- @include: ./slots/descriptions.md#server|jo.notif.print -->

JO Functions > jo.notif.print() > Syntax

jo.notif.print(source, ...)

JO Functions > jo.notif.print() > Parameters

source : integer

The source ID of the player

... : any

The data you want to print

<!-- @include: ./slots/examples.md#server|jo.notif.print -->

<!-- @include: ./slots/footers.md#server|jo.notif.print -->


JO Functions > jo.notif.right()

<!-- @include: ./slots/headers.md#server|jo.notif.right -->

Notification on the right with icon, color and sound <br>

<!-- @include: ./slots/descriptions.md#server|jo.notif.right -->

JO Functions > jo.notif.right() > Syntax

jo.notif.right(source, text, dict, icon, color, duration, soundset_ref, soundset_name)

JO Functions > jo.notif.right() > Parameters

source : integer

(The source ID of the player)

text : string

The text of the notification

dict : string

The dictionnary of the icon

icon : string

The name of the icon

color : string <BadgeOptional />

The color of the text <br> default : "COLOR_WHITE"

duration : integer <BadgeOptional />

The duration of the notification in ms <br> default: 3000

soundset_ref : string <BadgeOptional />

The dictionnary of the soundset <br> default : "Transaction_Feed_Sounds"

soundset_name : string <BadgeOptional />

The name of the soundset <br> default : "Transaction_Positive"

<!-- @include: ./slots/examples.md#server|jo.notif.right -->

<!-- @include: ./slots/footers.md#server|jo.notif.right -->


JO Functions > jo.notif.rightError()

<!-- @include: ./slots/headers.md#server|jo.notif.rightError -->

A function to display an error notification <br>

<!-- @include: ./slots/descriptions.md#server|jo.notif.rightError -->

JO Functions > jo.notif.rightError() > Syntax

jo.notif.rightError(source, text)

JO Functions > jo.notif.rightError() > Parameters

source : integer

The source ID of the player

text : string

The text of the notification

JO Functions > jo.notif.rightError() > Return Value

Type : boolean

Always return false

<!-- @include: ./slots/examples.md#server|jo.notif.rightError -->

<!-- @include: ./slots/footers.md#server|jo.notif.rightError -->


JO Functions > jo.notif.rightSuccess()

<!-- @include: ./slots/headers.md#server|jo.notif.rightSuccess -->

A function to display a successful notification <br>

<!-- @include: ./slots/descriptions.md#server|jo.notif.rightSuccess -->

JO Functions > jo.notif.rightSuccess() > Syntax

jo.notif.rightSuccess(source, text)

JO Functions > jo.notif.rightSuccess() > Parameters

source : integer

The source ID of the player

text : string

The text of the notification

JO Functions > jo.notif.rightSuccess() > Return Value

Type : boolean

Always return true

<!-- @include: ./slots/examples.md#server|jo.notif.rightSuccess -->

<!-- @include: ./slots/footers.md#server|jo.notif.rightSuccess -->


JO Functions > jo.notif.simpleTop()

<!-- @include: ./slots/headers.md#server|jo.notif.simpleTop -->

Notification on the top with big title and subtitle (native mission start/end) <br>

<!-- @include: ./slots/descriptions.md#server|jo.notif.simpleTop -->

JO Functions > jo.notif.simpleTop() > Syntax

jo.notif.simpleTop(source, title, subtitle, duration)

JO Functions > jo.notif.simpleTop() > Parameters

source : integer

The source ID of the player

title : string

The title of the notification

subtitle : string

The text of the notification

duration : integer <BadgeOptional />

The duration of the notification in ms <br> default : 3000

<!-- @include: ./slots/examples.md#server|jo.notif.simpleTop -->

<!-- @include: ./slots/footers.md#server|jo.notif.simpleTop -->

JO Functions > jo.notif.right() > Parameters

source : integer

(The source ID of the player)

text : string

The text of the notification

dict : string <BadgeOptional />

The dictionnary of the icon

icon : string <BadgeOptional />

The name of the icon

color : string <BadgeOptional />

The color of the text <br> default : "COLOR_WHITE"

duration : integer <BadgeOptional />

The duration of the notification in ms <br> default: 3000

soundset_ref : string <BadgeOptional />

The dictionnary of the soundset <br> default : "Transaction_Feed_Sounds"

soundset_name : string <BadgeOptional />

The name of the soundset <br> default : "Transaction_Positive"

<!-- @include: ./slots/examples.md#server|jo.notif.right -->

<!-- @include: ./slots/footers.md#server|jo.notif.right -->


Back to documentation