justNotify
This is the official doc of the justNotify resource for FiveM
We will be going over some installation and config
Installation
After purchase, download the resource from keymaster (https://keymaster.fivem.net/)
Unzip the folder
Upload the folder to your server (make sure you have the content as: justNotify/content, and not justNotify/justNotify/content!)
Restart your server and you're good to go!
We added some commands in the commands.lua file, but you can remove those. Those are only for testing purposes
Config
We have a config for the colors of the text, and the main background for all the notifications. Afcourse, you can access the main css to change it just to your liking, but for the less experienced developers we made it easier! You can find the notification config here: justNotify/html/config.css
```css
:root { /* dont touch this line! */
--info-text-color: rgb(82, 125, 243);
--error-text-color: rgb(243, 87, 82);
--success-text-color: rgb(130, 243, 82);
--background-color: #2B3246;
--shadow: 9px 9px 18px #262c3e, -9px -9px 18px #30384e;
} /* dont touch this line! */
```Please leave the ":root {" and the "}" as they are and don't touch them, otherwise the script will probably crash!
Exports
How do use our notify in your script? we added a export to our notify so you can add it! You can either use export:
exports.justNotify:notify(title, message, time, type)Or event:
TriggerClientEvent("justNotify:notify", title, message, time, type)Our types are: - Info - Error - Success Examples:
function succesNotify(title, message)
exports.justNotify:notify(title, message, 5000, 'success')
end
function succesNotify(title, message)
TriggerClientEvent("justNotify:notify", title, message, 5000, 'success')
endLast updated