ToZ Notifications is a standalone notification resource by TottoZZ. Its Lua client sends messages to a bundled browser interface without requiring ESX or QBCore. Use it for presentation; it does not validate the underlying gameplay event or provide a server notification export.
Send notifications through the provided interfaces
The client export sendNotification accepts a data table with title, text, type and duration. The Lua wrapper defaults to an informational notification lasting 4000 milliseconds. The interface supports info, success, warning and error styles. Pass a positive duration and text values appropriate for your own notification flow.
From server code, the documented integration sends the toz-notifications:sendNotification client event to the intended player with that data table. This is an event call, not a server export. Avoid broadcasting private character, payment or staff messages to every player.
Install and adapt it to your framework
Keep the manifest, src/client directory and build directory together in the resource folder. The manifest serves build/index.html and its assets. Start the resource before scripts that call its client export. config.lua exists in the repository but is not loaded by the reviewed manifest, so changing its language setting does not configure the running resource.
The README includes examples that replace framework notification functions. Check the actual function signatures in your installed ESX or QBCore version first. The examples assume a table for options and their resource-state check also accepts stopped resources. Prefer a small integration in your own script with a started-state check and a working fallback.
Message handling and review scope
The Vue source converts GTA formatting codes to HTML and renders message text with v-html without escaping existing markup. Sanitize untrusted message content and validate payload types before display. Test all four styles, missing fields, long text, repeated messages, resource restart and fallback behavior on a development server.
Source checked on 10 September 2026 at revision 5ca472086703b3db614214b2be691bd8e7d62c69. Manifest, client wrapper, README and Vue source were inspected; no framework integration or in-game browser test was performed.