Codem-AdvancedNotifySystem is a notification UI for FiveM that shows animated alerts with an icon, a title and a sound. Your other scripts call it through exports or a client event.
Features
- Built-in notification types with their own icon and colour: success, error, info, announcement, message, Twitter, call, bank, bill, LSPD, EMS, taxi, mechanic, bitcoin and save
- Exports for different display times:
DoShortHudText(1 s),DoHudText(4 s),DoLongHudText(5 s) andDoCustomHudTextwith your own type, length and title DoHudJobTextpicks the LSPD, EMS or taxi style from the job name, andDoHudAATextshows an announcement- Client events
codem-notification:client:SendAlertandcodem-notification:client:SendCustomeAlertfor scripts that trigger notifications by event - Alert sound (
notification.mp3) that players can switch on or off - Players choose where alerts appear with
/customnotif: top, bottom, left, right or next to the HUD, and can hide notifications
Requirements
- No framework needed: it is a client-side UI resource
- Players need internet access, because the animation library (anime.js) loads from cdnjs
Installation
- Copy the folder
codem-notificationinto yourresourcesdirectory. - Add
ensure codem-notificationto yourserver.cfg. - Call it from your client scripts, using the folder name as the export name:
exports['codem-notification']:DoHudText('success', 'Saved') exports['codem-notification']:DoCustomHudText('lspd', 'Dispatch call received', 6000, 'LSPD')