GFX Development
  • gfx
    • About GFX
  • Product Docs
    • 📥GFX All in One Menu
      • 🛠️Setup
        • ⚙️Configuration
        • 📝Setting Permissions
      • 📒Informations
        • 💻For Developers
        • 👨‍💻Admin Commands
      • 🖇️Pages
        • 📄Profile
        • 📄Leaderboard
    • 🏎️GFX Racing
      • 🔨Installation
      • ⚙️Configuration
    • 📸GFX Deathcam
      • 🔨Installation
      • GFX Deathcam V1
        • ⚙️Configuration
      • GFX Deathcam V2
        • ⚙️Configuration
    • 📊GFX Leaderboard
      • 🔨Installation
      • ⚙️Configuration
    • ⚔️GFX Arena
      • 🔨Installation
      • ⚙️Configuration
    • 👨‍👨‍👦‍👦GFX Squad
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports
    • 🔬GFX Evidence
      • 🔨Installation
      • ⚙️Configuration
    • ❗GFX Notification
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports and Events
        • ⬆️Exports
        • ⬇️Events
    • 🚚GFX Delivery
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Tebexshop
      • 🔨Installation
      • ⚙️Configuration
      • ⚠️Tebex Settings
      • ⬆️Exports
    • 👁️‍🗨️GFX Interact
      • 🔨Installation
      • ⬆️Exports
    • 🫂GFX Crew
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • 🫂GFX Squad Remake
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX PVP Chat
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX HUD
      • 🔨Installation
      • ⚙️Configuration
    • 🔫GFX Attachment
      • 🔨Installation
      • ⚙️Configuration
    • 💀GFX Deathlog
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX PVP Shop
      • 🔨Installation
      • ⚙️Configuration
    • 🧱GFX Crafting
      • 🔨Installation
      • ⚙️Configuration
    • 🚍GFX Bus Job
      • 🔨Installation
      • ⚙️Configuration
    • 🐔GFX Chicken Farm
      • 🔨Installation
      • ⚙️Configuration
    • 🎁GFX Giveaway
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Pawnshop
      • 🔨Installation
      • ⚙️Configuration
    • 🪵GFX Lumberjack
      • 🔨Installation
      • ⚙️Configuration
    • 🚙GFX Secondhand Vehicle
      • 🔨Installation
      • ⚙️Configuration
    • 🤖GFX Autopilot
      • 🔨Installation
      • ⚙️Configuration
    • 🗳️GFX Vote
      • 🔨Installation
      • ⚙️Configuration
    • 🟢GFX Safezone
      • 🔨Installation
      • ⚙️Configuration
    • 🎅GFX Christmastruck
      • 🔨Installation
      • ⚙️Configuration
    • 🚔GFX Handcuff
      • 🔨Installation
      • ⚙️Configuration
    • 🚚GFX Trucker Job
      • 🔨Installation
      • ⚙️Configuration
    • 🌱GFX Weed
      • 🔨Installation
      • ⚙️Configuration
    • 🔉GFX DUI Radio
      • 🔨Installation
      • ⚙️Configuration
Powered by GitBook
On this page
  1. Product Docs
  2. GFX Deathlog

Configuration

Check the instructions below.

The script offers two main configuration files: Config.lua and webhook.lua.


Config.lua

This file defines the weapon list and fatality index for logging player deaths.

General Settings

Setting
Description
Default Value

FatalIndex

Index for identifying fatal damage types in logs.

6

Weapons

List of weapons that will trigger logging, mapped by weapon hashes.

(See below)

Weapon Configuration

The Weapons table maps weapon hashes to their respective weapon identifiers. Add or remove weapons as needed for your server.

Example Weapon Configuration:

Config.Weapons = {
    [`weapon_carbinerifle`] = "weapon_carbinerifle",
    [`weapon_combatmg`] = "weapon_combatmg",
    [`weapon_sniperrifle`] = "weapon_sniperrifle"
}

webhook.lua

This file manages the Discord integration for death logs.

Discord Webhook Settings

Setting
Description
Default Value

WEBHOOK

Discord webhook URL (replace with yours).

"" (empty by default)

ICON

URL for the webhook message icon.

gfxdiscount2.png (update if needed)

COLOR

Color code for the Discord embed.

1127128

FOOTERURL

URL for the footer icon.

gfxdiscount2.png (update if needed)

Example Configuration:

DISCORD = {
    WEBHOOK = "https://discord.com/api/webhooks/your_webhook_url",
    ICON = "https://cdn.discordapp.com/path_to_icon.png",
    COLOR = 1127128,
    FOOTERURL = "https://cdn.discordapp.com/path_to_footer_icon.png"
}

Usage

Once installed and configured, the script will:

  • Automatically detect and log player deaths caused by the weapons defined in Config.lua.

  • Send the log information to the specified Discord webhook with detailed weapon information.

Example Discord Embed:

  • Weapon Used: weapon_carbinerifle

  • Fatality Details: Fatal index detected.

  • Embed Color: Customizable in webhook.lua.


PreviousInstallationNextGFX PVP Shop

Last updated 5 months ago

💀
⚙️