Simple clean FiveM notify script
Use the following export client or server
exports.mt_notify:sendNotify(data)
Data fields:
- message: string (required)
- time: number (optional)
- type: string (required)
- icon: string (optional)
- background: string (optional)
- textColor: string (optional)
- iconColor: string (optional)
Default types:
- info
- information
- primary
- error
- success
- custom
Example usages:
exports.mt_notify:sendNotify({ message = 'This is a test notify', time = 5000, type = 'success' })
exports.mt_notify:sendNotify({ message = 'This is a test notify', time = 5000, type = 'custom', icon = 'fas fa-info-circle', background = 'white', textColor = 'black', iconColor = 'red' })