# justNotify

We will be going over some installation and config<br>

## Installation

1. After purchase, download the resource from keymaster (<https://keymaster.fivem.net/>)
2. Unzip the folder
3. Upload the folder to your server (make sure you have the content as: justNotify/content, and not justNotify/justNotify/content!)
4. 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<br>

## 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<br>

````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!\ <br>

## 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:

```lua
exports.justNotify:notify(title, message, time, type)
```

Or event:

```lua
TriggerClientEvent("justNotify:notify", title, message, time, type)
```

Our types are:\
\- Info\
\- Error\
\- Success\
\
Examples:

```lua
function succesNotify(title, message)
    exports.justNotify:notify(title, message, 5000, 'success')
end

function succesNotify(title, message)
    TriggerClientEvent("justNotify:notify", title, message, 5000, 'success')
end
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://justdevelopment.gitbook.io/home/products/justnotify.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
