👷♂️Installation NOTIFY SYSTEM
🛠️ Installation Guide – Syntax Notify 🚀
Follow these simple steps to integrate Syntax Notify into your FiveM server and start sending custom notifications.
📌 1. Script Installation
1️⃣ Download the script and add it to your server's resources folder. 📂
2️⃣ Add it to your server.cfg with the following line:
ensure Syntax_Notify3️⃣ Restart your server or use refresh and start Syntax_Notify in the console.
🎯 2. Client-side Usage
To display a notification from any client-side script, use this function:
exports['Syntax_Notify']:Alert("TITLE", "Text <span style='color:#1c77ff'>HIGHLIGHTED TEXT</span>!", time, 'type')📌 Parameter Explanation:
"TITLE"→ Notification title."Text <span style='color:#1c77ff'>HIGHLIGHTED TEXT</span>!"→ Message content, with the option to highlight text using HTML.time→ Duration in milliseconds.'type'→ Notification type (success, info, error, warning, sms, long).
🖥️ 3. Server-side Usage
If you need to send a notification from the server, use this function in server.lua:
TriggerClientEvent('Syntax_Notify:Alert', source, "TITLE", "Text <span style='color:#1c77ff'>HIGHLIGHTED TEXT</span>!", time, 'info')📌 Example usage in an event:
RegisterCommand("notify", function(source, args, rawCommand)
TriggerClientEvent('Syntax_Notify:Alert', source, "Notice", "This is a <span style='color:#1c77ff'>test notification</span>!", 5000, 'success')
end, false)✅ Done! Now your players will receive custom notifications with a modern and professional design!
📩 Questions or support? Contact us! 🚀
Last updated