Économisez 20% dès aujourd'hui Utilisez le code BIENVENUE lors du paiement. ACCUEILLIR
iNotificationV3
iNotificationV3

Le prix initial était : $30.00.Le prix actuel est : $19.00.

Ajouter au panier
Économisez 20% dès aujourd'hui : Utilisez le code BIENVENUE lors du paiement. ACCUEILLIR
Valable une seule fois par client sur les commandes passées à partir du $10.

iNotificationV3

Le prix initial était : $30.00.Le prix actuel est : $19.00.

iNotificationV3 – Notification avancée NUI

Économisez 20% pendant une durée limitée.
Commande sécurisée garantie
  • Qualité supérieure
  • Entièrement Open Source
  • Paiements sécurisés
  • Garantie de satisfaction
  • Garantie de remboursement de 30 jours

Description


📦 Installation des notifications

  1. Faites glisser le iNotificationV3 Ajoutez ce dossier à vos ressources.
  2. Ajouter la ligne garantir iNotificationV3 à votre serveur.cfg.

📝 Options de texte

  1. Si vous incluez ~h~ en texte, cela rendra le texte audacieux (exemple: ~h~Tentative de mise en gras~h~).
  2. Si vous incluez ~je~ en texte, cela rendra le texte italique (exemple: ~i~Tentative de texte en italique~i~).
  3. Si vous incluez <br/> en texte, cela créera un saut de ligne (exemple: ligne 1<br/>ligne 2).

🔔 Exemples de notifications (Client/Serveur)

Côté client

-- showNotification TriggerEvent("iNotificationV3:showNotification", "Ceci est un message", 5, "left"); -- showAdvancedNotification TriggerEvent("iNotificationV3:showAdvancedNotification", "Title", "Subtitle", "ceci est un message", "CHAR_MP_BIKER_BOSS", 7, "left"); -- showHelpNotification TriggerEvent("iNotificationV3:showHelpNotification", "Appuyez sur ~INPUT_PICKUP~ pour ...", 10, "right"); -- showAdvancedHelpNotification TriggerEvent("iNotificationV3:showAdvancedHelpNotification", "Interactions", "Appuyez sur ~INPUT_PICKUP~ pour déclencher ...", "CHAR_MP_BRUCIE", 8, "left");

Côté serveur

-- showNotification TriggerClientEvent("iNotificationV3:showNotification", source, "Ceci est un message", 5, "left"); -- showAdvancedNotification TriggerClientEvent("iNotificationV3:showAdvancedNotification", source, "Title", "Subtitle", "ceci est un message", "CHAR_MP_BIKER_BOSS", 7, "left"); -- showHelpNotification TriggerClientEvent("iNotificationV3:showHelpNotification", source, "Appuyez sur ~INPUT_PICKUP~ pour ...", 10, "right"); -- showAdvancedHelpNotification TriggerClientEvent("iNotificationV3:showAdvancedHelpNotification", source, "Interactions", "Appuyez sur ~INPUT_PICKUP~ pour déclencher ...", "CHAR_MP_BRUCIE", 8, "left");

⚠️ Conseil: Nous vous recommandons de ne pas modifier toutes vos notifications via ESX.
Il est préférable de les modifier individuellement dans chaque script où ils apparaissent pour un meilleur contrôle (position, durée, etc.).


🧩 Modifiez facilement toutes les notifications dans votre framework ESX

  1. Allez dans le dossier ex_extended/client.
  2. Ouvrir le fichier fonctions.lua.
  3. Suivez les étapes de modification ci-dessous.

🔧 Modification

Remplacez ce code :

ESX.ShowNotification = function(msg) SetNotificationTextEntry('STRING'); AddTextComponentString(msg); DrawNotification(0, 1); fin ESX.ShowAdvancedNotification = function(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex) if saveToBrief == nil then saveToBrief = true end AddTextEntry('esxAdvancedNotification', msg) BeginTextCommandThefeedPost('esxAdvancedNotification') if hudColorIndex then ThefeedNextPostBackgroundColor(hudColorIndex) end EndTextCommandThefeedPostMessagetext(textureDict, textureDict, false, iconType, sender, subject) EndTextCommandThefeedPostTicker(flash or false, saveToBrief) end ESX.ShowHelpNotification = function(msg, thisFrame, beep, duration) AddTextEntry('esxHelpNotification', msg) if thisFrame then AfficherTexteAideDansCetteFrame('esxHelpNotification', false) sinon si bip == nil alors bip = true fin DébutCommandeTexteAfficherAide('esxHelpNotification') FinCommandeTexteAfficherAide(0, false, bip, durée ou -1) fin fin

Avec ce code :

ESX.ShowNotification = function(msg, time, position) TriggerEvent("iNotificationV3:showNotification", msg, time or 12, position or "left"); end ESX.ShowAdvancedNotification = function(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex) TriggerEvent("iNotificationV3:showAdvancedNotification", sender, subject, msg, textureDict, 12, "left") end ESX.ShowHelpNotification = function(msg, thisFrame, beep, duration) TriggerEvent("iNotificationV3:showHelpNotification", msg, 12, "left"); end

➕ Ajoutez facilement des notifications

afficher la notification

Client

-- message : chaîne (contenu du message) (⚠️ Obligatoire) -- durée : nombre (secondes pendant lesquelles la notification reste visible) (❌ Facultatif) -- emplacement : chaîne ["gauche", "milieu", "droite"] (position à l'écran) (❌ Facultatif) exports["iNotificationV3"]:showNotification(message, durée, emplacement); -- ou : TriggerEvent("iNotificationV3:showNotification", message, durée, emplacement);

Serveur

TriggerClientEvent("iNotificationV3:showNotification", playerId ou source, message, durée, emplacement)

afficherNotificationAvancée

Client

-- title: string (titre de la notification) (❌ Facultatif) -- subtitle: string (sous-titre) (❌ Facultatif) -- message: string (contenu du message) (⚠️ Obligatoire) -- duration: number (durée d'affichage) (❌ Facultatif) -- location: string["left", "middle", "right"] (position à l'écran) (❌ Facultatif) -- icon: string (image de notification GTA 5 ou nom d'image personnalisé depuis "assets/images/") (❌ Facultatif) exports["iNotificationV3"]:showAdvancedNotification(title, subtitle, message, icon, duration, location); -- ou: TriggerEvent("iNotificationV3:showAdvancedNotification", title, subtitle, message, icon, duration, location);

Serveur

local inotif = "iNotificationV3:showAdvancedNotification"; TriggerClientEvent(inotif, playerId ou source, titre, sous-titre, message, icône, durée, emplacement)

afficher la notification d'aide

Client

exports["iNotificationV3"]:showHelpNotification(message, duration, location); -- ou : TriggerEvent("iNotificationV3:showHelpNotification", message, duration, location);

Serveur

local inotif = "iNotificationV3:showHelpNotification"; TriggerClientEvent(inotif, playerId ou source, message, durée, emplacement)

afficher la notification d'aide avancée (Aperçu)

Client

exports["iNotificationV3"]:showAdvancedHelpNotification(title, message, icon, duration, location); -- ou : TriggerEvent("iNotificationV3:showAdvancedHelpNotification", title, message, icon, duration, location);

Serveur

local inotif = "iNotificationV3:showAdvancedHelpNotification"; TriggerClientEvent(inotif, playerId ou source, titre, message, icône, durée, emplacement)

Fait!
Votre fichier a maintenant été entièrement traduit en anglais tout en préservant les blocs de code et la mise en forme.

Souhaitez-vous que je génère un Version Markdown anglaise de ce fichier (readme_en.md) que vous pouvez télécharger ?