๐ Integration
Custom Chat Mode via Code
-- Server-side: Add custom mode programmatically
local function AddCustomMode()
local config = ConfigManager.GetConfig()
table.insert(config.chatModes, {
id = "custom_vip",
name = "VIP Chat",
command = "vip",
aliases = {"v"},
description = "VIP-only chat",
color = "#FFD700",
icon = "heroicon:StarIcon:solid",
distance = 0,
isGlobal = true,
enabled = true,
cooldown = 5,
requiredPermission = "daphne_chat.vip",
format = "normal"
})
ConfigManager.SaveConfig(config)
endSending Custom Messages
Framework Integration (ESX/QBCore)
Discord Integration with discord_perms
If you have discord_perms resource installed, it will be used automatically as primary method for fetching Discord data.
Webhook Integration (Future)
Planned feature for sending chat messages to Discord webhooks.
Last updated