> For the complete documentation index, see [llms.txt](https://ahero-fivem-shop.gitbook.io/ahero.fivem-shop-gtav/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ahero-fivem-shop.gitbook.io/ahero.fivem-shop-gtav/rageui-esx/ainventaire/variable-_config.lua/okoknotify-et-okokbilling.md).

# okoknotify et okokbilling

{% hint style="danger" %}
À lire uniquement si vous utilisez <mark style="color:red;">okokNotify</mark> et <mark style="color:red;">okokBilling</mark>. Si ce n'est pas le cas, merci de ne pas continuer. Ces options sont incluses pour nos clients qui utilisent les ressources OKOK.
{% endhint %}

***

## Webhook

```lua
-- Notifications personnalisées okok
notifOkOk = false, -- Utiliser okokNotif (mettre sur TRUE si utilisé, sinon sur FALSE)

-- Facturation personnalisée okokBilling
okokBilling = true, -- Utiliser okokBilling (mettre sur TRUE si utilisé, sinon sur FALSE)
DatabaseTable = "okokbilling", -- Nom de la table pour les factures
UseAutoPay = false, -- Paiement automatique des factures (true = actif)
FeeAfterEachDay = true, -- Ajout de frais pour retard de paiement (true = actif)
FeeAfterEachDayPercentage = 5, -- Pourcentage des frais de retard
CheckForUnpaidInvoicesEvery = 60, -- Intervalle de vérification des factures impayées (en minutes, maximum 60 minutes)
```

{% hint style="info" %}
**Notifications personnalisées okok**

* `notifOkOk = false` : Active les notifications personnalisées `okokNotif`. Mettez cette variable sur TRUE pour utiliser `okokNotif`, sinon laissez-la sur FALSE.

**Facturation personnalisée okokBilling**

* `okokBilling = true` : Active la facturation personnalisée `okokBilling`. Mettez cette variable sur TRUE pour utiliser `okokBilling`, sinon mettez-la sur FALSE.
* `DatabaseTable = "okokbilling"` : Nom de la table dans la base de données pour stocker les factures.
* `UseAutoPay = false` : Active le paiement automatique des factures. Mettez cette variable sur TRUE pour activer cette fonctionnalité.
* `FeeAfterEachDay = true` : Ajoute des frais pour retard de paiement. Mettez cette variable sur TRUE pour activer cette fonctionnalité.
* `FeeAfterEachDayPercentage = 5` : Pourcentage des frais ajoutés pour chaque jour de retard.
* `CheckForUnpaidInvoicesEvery = 60` : Intervalle de vérification des factures impayées, en minutes. La valeur maximale est de 60 minutes.
  {% endhint %}
