Skip to main content

Server Usage

From the server side, use TriggerClientEvent to send notifications to specific players.

Syntax

TriggerClientEvent('v_notify:notify', targetPlayerId, type, message, duration, title)
ParameterTypeDescription
targetPlayerIdnumberThe server ID of the target player
typestringNotification type: success, error, warning, info
messagestringThe notification message body
durationnumberHow long the notification stays visible in milliseconds
titlestringOptional custom title

Examples

Info Notification

TriggerClientEvent('v_notify:notify', targetPlayerId,
"info",
"Welcome to the server!",
4000,
"Information"
)

Access Denied

TriggerClientEvent('v_notify:notify', targetPlayerId,
"error",
"You lack permissions!",
4500,
"Access Denied"
)

Broadcast to All Players

TriggerClientEvent('v_notify:notify', -1,
"success",
"Server restart in 10 minutes.",
6000,
"Announcement"
)
tip

Use -1 as the targetPlayerId to send the notification to all connected players.

tip

Still need help? Join our Discord and our team will assist you.