Exports
nm1_classynotify Documentation
This document describes all available exports provided by the nm1_classynotify resource, including client-side and server-side usage, parameters, defaults, supported types, positions, and examples.
The system is framework-compatible and works with ESX, QBCore, QBox, and standalone setups.
Client Exports
exports['nm1_classynotify']:Notify(data)
Displays a notification on the local client.
This is the primary and recommended client export for showing notifications.
Parameters
data (table)
title
string
No
"Notification"
Notification title
description
string
Yes
nil
Main notification message
type
string
No
"info"
Notification type
duration
number
No
5000
Duration in milliseconds
position
string
No
Saved/User Position
Notification screen position
icon
string
No
nil
FontAwesome icon
theme
string
No
"dark"
Notification theme
sound
boolean
No
true
Plays notification sound
showProgress
boolean
No
true
Shows duration progress bar
Supported Types
success
error
info
warning
Supported Positions
top-right
top-left
top-center
bottom-right
bottom-left
bottom-center
center-right
center-left
Example (Client)
Example (Custom Position & Icon)
Example (Light Theme)
Server Exports
Server exports allow notifications to be triggered directly from server-side scripts.
exports['nm1_classynotify']:NotifyPlayer(src, data)
Sends a notification to a specific player.
Parameters
src
number
Player server ID
data
table
Notification data table
Example (Server)
exports['nm1_classynotify']:NotifyAll(data)
Broadcasts a notification to all connected players.
Parameters
data
table
Notification data table
Example (Broadcast)
Events
Client Event
Used internally and can also be triggered manually from client scripts.
Server Event
Used internally by server exports.
Notification Features
Modern animated NUI notifications
Custom notification positions
Progress bar support
Sound effects
Persistent user settings
Light/Dark theme support
FontAwesome icon support
ox_lib compatibility
ESX/QBCore/QBox compatible
Standalone support
Notes & Behavior
Saved notification settings are persisted per player
Position settings automatically apply on resource start
If
positionis passed indata, it overrides the saved position for that notification onlyTheme defaults to
"dark"if not providedDuration is automatically handled by the NUI system
Notifications are stacked dynamically
Supports multiple notifications simultaneously
Recommended Usage
Use the export system instead of manually triggering NUI events whenever possible.
Recommended:
Avoid directly sending raw NUI messages unless modifying the core resource.
Last updated