Default Configuration File

This is what the C7 Simple Chat's configuration file looks like.

Config = {}

Config.Debug = false

---------------------------------------------------------
-- FRAMEWORK CONFIGURATION
---------------------------------------------------------

Config.Framework = "C7FW" -- Choose between: "C7FW" or "Standalone"

Config.UseFrameworkID = false -- Show the Character ID in the message.              !! (C7FW Only) !!
Config.ShowDepartment = true -- Show the Character's Department in the message.     !! (C7FW Only) !!
Config.ShowCallsign  = true -- Show the Character's Callsign in the message.        !! (C7FW Only) !!

---------------------------------------------------------
-- GENERAL SETTINGS
---------------------------------------------------------

Config.DefaultRange = 20.0 -- The default range for proximity messages
Config.MaxMessageLength = 280 -- How many characters can be in a message.
Config.DefaultType = "me" -- Default type for normal chat messages (no slash)

Config.EnableWebhooks = true   -- Global chat webhooks toggle (for /me, /do, /911, etc.)

Config.displayJoinMessages = true -- Enable/Disable Join Messages (this replaces the default system messages)
Config.displayLeaveMessages = true -- Enable/Disable Leave Messages (this replaces the default system messages)
Config.displaySystemMessages = true -- Enable/Disable System Messages (commands not existing, stuff like that)



---------------------------------------------------------
-- NEAREST POSTAL CONFIGURATION
---------------------------------------------------------

Config.NearestPostal = {
    enabled     = true,
    resource    = "wsrp.nearest-postal",
    exportName  = "getPostal"
}




---------------------------------------------------------
-- MESSAGE TYPES
--
-- Each entry controls BOTH:
--  - behaviour (proximity/global, 3D, anonymous, 911/311, etc)
--  - chat suggestions (client side)
--
-- FIELDS:
--  enabled       = true/false
--  commands      = { "me", "m" }   -- slash commands for this type
--  prefix        = "ME"            -- tag in [ME]
--  textColor      = "#RRGGBB"
--  proximity     = true/false      -- true = range based, false = global
--  range         = number or nil   -- if nil uses Config.DefaultRange
--  showInChat    = true/false      -- if false, only 3D is shown
--  use3D         = true/false      -- draw 3D text above head
--  threeDRange   = number or nil   -- distance to see 3D (default 10.0)
--  threeDDuration= ms or nil       -- duration of 3D display (default 5000)
--  wrap3D        = true/false      -- wraps text as *text* in 3D
--  isAnonymous   = true/false      -- hides name (used by darkweb, anon calls)
--  isCall        = true/false      -- special 911/311 formatting with location
--  callService   = "911"/"311"     -- used if isCall = true
--  anonymousHeader = "Anonymous"   -- optional custom anon name
--
--  suggestion = {
--      description = "Shown in chat suggestions",
--      params = {
--          { name = "message", help = "What you want to say" }
--      }
--  }
---------------------------------------------------------

Config.MessageTypes = {

    -----------------------------------------------------
    -- BASE RP TYPES
    -----------------------------------------------------

    me = {
        enabled    = true,
        commands   = { "me" },
        prefix     = "ME",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#6d66ff",
        pillColor   = "#1b1940",
        proximity  = true,
        range      = 20.0,
        showInChat = true,
        use3D      = false,

        suggestion = {
            description = "Send a message in the third person. (Proximity Chat)",
            params = {
                { name = "message", help = "Send a message in the third person. (Proximity Chat)" }
            }
        }
    },

    ["do"] = {
        enabled    = true,
        commands   = { "do" },
        prefix     = "DO",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#e67e22",
        pillColor   = "#45250a",
        proximity  = true,
        range      = 20.0,
        showInChat = true,
        use3D      = false,

        suggestion = {
            description = "Send an action message (Proximity Chat)",
            params = {
                { name = "message", help = "Send an action message (Proximity Chat)" }
            }
        }
    },

    ooc = {
        enabled    = true,
        commands   = { "ooc" },
        prefix     = "OOC",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#d0d627",
        pillColor   = "#40420b",
        proximity  = true,
        range      = 20.0,
        showInChat = true,
        use3D      = false,

        suggestion = {
            description = "Send an out of character message (Proximity Chat)",
            params = {
                { name = "message", help = "Send an out of character message (Proximity Chat)" }
            }
        }
    },

    gme = {
        enabled    = true,
        commands   = { "gme" },
        prefix     = "GME",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#37ed84",
        pillColor   = "#11522c",
        proximity  = false,
        showInChat = true,
        use3D      = false,

        suggestion = {
            description = "Send a global message in the third person. (Global Chat)",
            params = {
                { name = "message", help = "Send a global message in the third person. (Global Chat)" }
            }
        }
    },

    -----------------------------------------------------
    -- MEDICAL / 3D ME
    -----------------------------------------------------

    med = {
        enabled    = true,
        commands   = { "med" },
        prefix     = "MEDICAL",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#45f5d2",
        pillColor   = "#18594c",
        proximity  = true,
        range      = 20.0,
        showInChat = true,
        use3D      = true,
        threeDRange    = 20.0,
        threeDDuration = 5000,
        wrap3D         = true,

        suggestion = {
            description = "Send a medical message (Proximity Chat)",
            params = {
                { name = "message", help = "Send a medical message (Proximity Chat)" }
            }
        }
    },

    mer = {
        enabled    = true,
        commands   = { "mer" },
        prefix     = "ME",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#6d66ff",
        pillColor   = "#1b1940",
        proximity  = true,
        range      = 20.0,
        showInChat = true,
        use3D      = true,
        threeDRange    = 20.0,
        threeDDuration = 5000,
        wrap3D         = true,

        suggestion = {
            description = "Send a 3D and chat message in the third person (Proximity Chat)",
            params = {
                { name = "message", help = "Send a 3D and chat message in the third person (Proximity Chat)" }
            }
        }
    },

    -----------------------------------------------------
    -- WHISPER (3D ONLY)
    -----------------------------------------------------

    whisper = {
        enabled    = true,
        commands   = { "w", "whisper" },
        prefix     = "WHISPER",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#aaaaaa",
        pillColor   = "#aaaaaa41",
        proximity  = true,
        range      = 5.0,
        showInChat = false,
        use3D      = true,
        threeDRange    = 5.0,
        threeDDuration = 5000,
        wrap3D         = true,

        suggestion = {
            description = "Send a 3D above-the-head message without chat output",
            params = {
                { name = "message", help = "Send a whispered message" }
            }
        }
    },

    -----------------------------------------------------
    -- GLOBAL OOC / CCTV / DARKWEB / AD
    -----------------------------------------------------

    gooc = {
        enabled    = true,
        commands   = { "gooc" },
        prefix     = "GLOBAL OOC",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#ff8800",
        pillColor   = "#5c3100",
        proximity  = false,
        showInChat = true,
        use3D      = false,

        suggestion = {
            description = "Send a global out of character message (Global Chat)",
            params = {
                { name = "message", help = "Send a global OOC message" }
            }
        }
    },

    cctv = {
        enabled    = true,
        commands   = { "cctv" },
        prefix     = "CCTV",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#fc3fc7",
        pillColor   = "#360c2a",
        proximity  = false,
        showInChat = true,
        use3D      = false,

        suggestion = {
            description = "Send a CCTV footage style message (Global Chat)",
            params = {
                { name = "message", help = "Send a CCTV message" }
            }
        }
    },

    darkweb = {
        enabled    = true,
        commands   = { "darkweb" },
        prefix     = "DARKWEB",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#919191",
        pillColor   = "#2b2b2b",
        proximity  = false,
        showInChat = true,
        use3D      = false,
        isAnonymous = true,
        anonymousHeader = "Anonymous",

        suggestion = {
            description = "Send an anonymous dark web message (Global Chat)",
            params = {
                { name = "message", help = "Send a dark web message" }
            }
        }
    },

    ad = {
        enabled    = true,
        commands   = { "ad" },
        prefix     = "ADVERTISEMENT",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#c2ed7b",
        pillColor   = "#273018",
        proximity  = false,
        showInChat = true,
        use3D      = false,

        suggestion = {
            description = "Send a global advertisement (Global Chat)",
            params = {
                { name = "message", help = "Send an advertisement" }
            }
        }
    },

    -----------------------------------------------------
    -- 911 / 311 CALLS
    -----------------------------------------------------

    nd911 = {
        enabled    = true,
        commands   = { "nd911" },
        prefix     = "NO DISPATCH 911",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#ff1f4b",
        pillColor   = "#420914",
        proximity  = false,
        showInChat = true,
        use3D      = false,
        isCall     = true,
        callService= "NO DISPATCH 911",
        isAnonymous = false,

        suggestion = {
            description = "No Dispatch 911 Call (Global Chat)",
            params = {
                { name = "message", help = "Send a 911 call" }
            }
        }
    },

    nda911 = {
        enabled    = true,
        commands   = { "nda911" },
        prefix     = "NO DISPATCH 911",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#ff1f4b",
        pillColor   = "#420914",
        proximity  = false,
        showInChat = true,
        use3D      = false,
        isCall     = true,
        callService= "911",
        isAnonymous = true,
        anonymousHeader = "Unknown Local Caller",

        suggestion = {
            description = "Anonymous 911 Call (Global Chat)",
            params = {
                { name = "message", help = "Send an anonymous 911 call" }
            }
        }
    },

    nd311 = {
        enabled    = true,
        commands   = { "nd311" },
        prefix     = "NO DISPATCH 311",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#308cfc",
        pillColor   = "#102d52",
        proximity  = false,
        showInChat = true,
        use3D      = false,
        isCall     = true,
        callService= "311",
        isAnonymous = false,

        suggestion = {
            description = "No Dispatch 311 Call (Global Chat)",
            params = {
                { name = "message", help = "Send a 311 call" }
            }
        }
    },

    nda311 = {
        enabled    = true,
        commands   = { "nda311" },
        prefix     = "NO DISPATCH 311",
        discord_webhook = "REPLACE WITH YOUR WEBHOOK",
        textColor   = "#308cfc",
        pillColor   = "#102d52",
        proximity  = false,
        showInChat = true,
        use3D      = false,
        isCall     = true,
        callService= "311",
        isAnonymous = true,
        anonymousHeader = "Unknown Local Caller",

        suggestion = {
            description = "Anonymous 311 Call (Global Chat)",
            params = {
                { name = "message", help = "Send an anonymous 311 call" }
            }
        }
    },

}

Last updated