Agency Docs
Standalone

Agency-Notify V2 Configuration

Notifications au design Agency (comme Agency-Housing), avec les styles classiques V2 Ultra et V1 toujours.

v2.5.3Gratuit5 Pages

01Configuration

Installation rapide · config.lua · Agency-Notify V2

Télécharger config.lua

--[[ ╔══════════════════════════════════════════════════════════════════════╗ ║ AGENCY NOTIFY - CONFIGURATION ║ ║ (c) Agency Scripts ║ ╚══════════════════════════════════════════════════════════════════════╝ CONTENTS 1. Agency Companion The free app for your players, accent colour 2. Core Language, database, menu command 3. Look Default style, position and colour per player 4. Smart Mode Priority, spam protection, reading time Use it from any script: exports['Agency-Notify']:Notify({ title = 'Bank', text = 'Paid $50', type = 'success' }) TriggerClientEvent('Agency:Notify:Send', source, { title = '...', text = '...', type = 'info' }) Ad-free and re-brandable: Agency-Essentials (Notify + Progressbar + Elevator + Reports in one resource) https://agency-script.tebex.io/package/essentials Discord: https://discord.gg/RTax3aBMUs · Shop: https://shop.agencyg.de ]] Config = {} --============================================================================== -- 1 · AGENCY COMPANION --============================================================================== -- Agency-Companion (free): https://shop.agencyg.de/en/companion -- One resource for every Agency script: your players link them with the free -- Agency Companion app (iPhone, Android, web), and your admins pick one accent -- colour for all Agency scripts in game (/app, admin page). Drop it into your -- resources and Agency Notify follows it by itself. Nothing else to set up. Config.Companion = { Enabled = true, -- follow Agency-Companion (accent colour) } -- ── Accent colour ──────────────────────────────────────────────────────────── -- false = the colour from Agency-Companion, gold without it -- { r,g,b } = a fixed colour for this script only, e.g. { 0, 190, 255 } -- Players can still pick their own colour in the settings menu. Config.AccentColor = false --============================================================================== -- 2 · CORE --============================================================================== -- ── Language ───────────────────────────────────────────────────────────────── -- en bg cs da de el es fi fr hr hu it ja ko nb nl pl pt ro ru sk sv tr uk zh-Hans Config.Locale = 'en' -- ── Database ───────────────────────────────────────────────────────────────── -- true = every player's settings are saved (needs oxmysql). -- false = everyone starts with the defaults below after a reconnect. Config.UseDatabase = true -- ── Settings menu ──────────────────────────────────────────────────────────── Config.MenuCommand = 'anotify' -- chat command that opens the menu (without /) --============================================================================== -- 3 · LOOK --============================================================================== -- Notifications always fit the screen resolution by themselves. On top of that every -- player can make them smaller or larger in the menu (Size, 60 to 150 %). Config.Defaults = { notifStyle = 'agency', -- 'agency' (2.5, like Agency-Housing) | 'v2' (ultra modern) | 'v1' (classic) position = 'center-right', -- top-right | top-left | center-right | center-left | bottom-right | bottom-left accentColor = 'agency', -- agency (see section 1) | blue | orange | purple | pink | green | red | cyan | gold durationModifier = 1.0, -- 0.5 = half as long, 1.0 = normal, 2.0 = twice as long notifScale = 1.0, -- start size for new players: 0.6 = 60 %, 1.0 = normal, 1.5 = 150 % } --============================================================================== -- 4 · SMART MODE --============================================================================== -- Fixed rules, no outside service: picks a priority from keywords, blocks -- duplicates, groups repeats and gives long texts more reading time. Config.SmartMode = { enabled = true, -- master switch smartPriority = true, -- error and warning words make a notification urgent spamProtection = true, -- block the same notification within the cooldown spamCooldown = 2000, -- ms smartDuration = true, -- longer texts stay longer minDuration = 3000, -- ms maxDuration = 15000, -- ms charsPerSecond = 12, -- reading speed for smart duration }

Toujours bloqué après cette page ? Notre support prend le relais.