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 PVP Chat

Configuration

Check the instructions below.

Theme Settings

The Config.Theme table includes various color properties to style the application. The colors are defined in hexadecimal and RGBA formats.

Property
Value
Description

primary

'#ff4f22'

Primary theme color in hexadecimal format

primary-content

'#900000'

Content color for primary theme

primary-opacity

"rgba(255, 47, 47, 0.2)"

Primary color with opacity (RGBA format)

secondary

"#FF2F2F"

Secondary theme color in hexadecimal

secondary-content

'#900000'

Content color for secondary theme

secondary-opacity

"rgba(255, 47, 47, 0.2)"

Secondary color with opacity (RGBA)


Editable Functions

GetCrewId Function

This function retrieves the crew ID from an external resource if it is running.

local crewScript = GetResourceState("gfx-crew") == "started" and "gfx-crew"

function GetCrewId()
    if crewScript == "gfx-crew" then
        local crewData = exports["gfx-crew"]:GetPlayerCrewData()
        return crewData and crewData.crewId
    else
        return nil
    end
end
  • GetResourceState("gfx-crew") checks if the "gfx-crew" resource is started.

  • exports["gfx-crew"]() retrieves crew data via an external resource's API.

  • Returns the crew ID if available, otherwise nil.

  • You can replace nil with your crew export if you have one.

External Resource Requirement:

The function depends on the external resource gfx-crew, and if not present, it will return nil.

GetSquadId Function

This function is a placeholder that currently returns a static squad ID of 1. You can write your own crew scripts' export instead of 1.

function GetSquadId()
    return 1
end

PhotoType

Config.PhotoType = "steam"
  • This option defines the source of user photos. In this case, the PhotoType is set to "steam", meaning the server will use the player's Steam avatar.

  • Other possible option is only "discord"

NoImage

Config.NoImage = "image placeholder link"
  • NoImage provides a fallback URL in case a user's photo is unavailable. The specified URL points to an image hosted on Discord's CDN.

  • This ensures that when no image is provided, a default placeholder image will be displayed.

DiscordBotToken

Config.DiscordBotToken = "YOUR_DISCORD_BOT_TOKEN"
  • This token connects the server to a Discord bot. The value YOUR_DISCORD_BOT_TOKEN should be replaced with the actual token for the bot you are integrating.

  • The Discord bot token is critical for authenticating and sending requests to the Discord API, allowing the bot to interact with channels, users, and messages as configured.

Important: Never share or expose your Discord bot token publicly, as it can be used to gain control of your bot.

You can set all the texts shown from this file.

PreviousInstallationNextExports

Last updated 6 months ago

⚙️