Post Apo Notify

Post Apo Notify Post Apo Notify
  • Post Apo Notify
  • Post Apo Notify

Ce produit est gratuit.

Ajouter au panier

# pp_notify — Post-Apocalyptic Notification System

> **Author : ANTHO© CREATION**

Système de notifications thème apocalypse zombie pour FiveM.

Sons synthétisés en temps réel — aucun fichier audio requis.

Zombie apocalypse notification system for FiveM.

Real-time synthesized sounds — no audio files required.

---

## Compatibilité / Compatibility

| Framework  | FR                                            | EN                                      |

|------------|-----------------------------------------------|-----------------------------------------|

| Standalone | Export direct                                 | Direct export                           |

| ESX        | Auto via `esx:showNotification`               | Auto via `esx:showNotification`         |

| QBCore     | Auto via `QBCore:Notify`                      | Auto via `QBCore:Notify`               |

| ox_lib     | Auto via `ox_lib:notify`                      | Auto via `ox_lib:notify`               |

| Autre      | Via `TriggerClientEvent('pp_notify:client')` | Via `TriggerClientEvent('pp_notify:client')` |

---

## Installation

**FR** — Copier le dossier `pp_notify` dans `resources/` puis ajouter dans `server.cfg` :  

**EN** — Copy the `pp_notify` folder into `resources/` then add to `server.cfg` :

```

ensure pp_notify

```

---

## Utilisation / Usage

### Client

```lua

exports['pp_notify']:Notify({

    icon     = 'skull',    -- hand | info | success | error | warning | money | car | weapon | phone | star | key | skull

    title    = 'DANGER',

    message  = 'Zone {radioactive} détectée. Quittez [ZONE ROUGE].',

    duration = 5000,       -- ms (default: 5000)

    type     = 'error',    -- default | success | warning | error

    sound    = true        -- false = disable sound for this notification

})

```

### Serveur / Server

```lua

-- FR : Envoyer à un joueur spécifique / EN : Send to a specific player

exports['pp_notify']:NotifyPlayer(source, {

    icon    = 'warning',

    title   = 'ATTENTION',

    message = 'Connexion instable.',

    type    = 'warning'

})

-- FR : Envoyer à tous les joueurs / EN : Broadcast to all players

exports['pp_notify']:NotifyAll({

    icon    = 'skull',

    title   = 'ALERTE GÉNÉRALE',

    message = 'Quarantaine activée dans [ZONE NORD].',

    type    = 'error'

})

```

---

## Types

| Type      | Couleur / Color | Son / Sound                                      |

|-----------|-----------------|--------------------------------------------------|

| `default` | Or / Gold       | Transmission radio grésillante / Crackling radio |

| `success` | Vert / Green    | Impact grave + montée / Bass thud + rising tone  |

| `warning` | Orange          | Clics Geiger + alarme / Geiger clicks + alarm    |

| `error`   | Rouge / Red     | Explosion EMP + sirène / EMP blast + siren       |

---

## Icônes / Icons

`hand` `info` `success` `error` `warning` `money` `car` `weapon` `phone` `star` `key` `skull`

---

## Formatage des messages / Message Formatting

| Syntaxe / Syntax | Résultat / Result          |

|------------------|----------------------------|

| `{texte}`        | Texte en or / Gold text    |

| `[TOUCHE]`       | Bouton clavier / Key badge |

| `~y~texte~s~`    | Or / Gold (GTA color code) |

| `~g~texte~s~`    | Vert / Green               |

| `~r~texte~s~`    | Rouge / Red                |

---

## Configuration

**FR** — Modifier le bloc `Config` en haut de `client.lua` :  

**EN** — Edit the `Config` block at the top of `client.lua` :

```lua

Config = {

    Sounds = {

        enabled = true,   -- true/false — global on/off

        volume  = 0.75,   -- volume 0.0 to 1.0

        types   = { default = true, success = true, warning = true, error = true }

    },

    NativeSounds = {

        enabled = false   -- GTA V native sounds as supplement (optional)

    }

}

```

---

## Commande de test / Test Command

```

/pptest

```

**FR** — Déclenche 4 notifications successives (default → success → warning → error).  

**EN** — Triggers 4 successive notifications (default → success → warning → error).

---

*ANTHO© CREATION — Tous droits réservés / All rights reserved*