Integrations

of_chat_theme integrates with popular FiveM resources.

Target System Integration

Control which target system is used:

Config.Target = "qb-target"  -- "ox" | "qb-target"

ox_target

If using ox_target:

Config.Target = "ox"

No additional configuration needed. NUI events are automatically sent to ox_target.

qb-target

If using qb-target:

Config.Target = "qb-target"

Works automatically with built-in commands.

Phone Integration

LB-PHONE

Automatic integration with LB-PHONE. Configure in config/config.lua:

Config.Hooks = {
    ["LB-PHONE"] = {
        birdy = true,  -- Convert Birdy posts to /twitter command
    },
}

When enabled:

  • Birdy app posts are sent as /twitter command
  • Appears in the global Twitter feed
  • Shows with Twitter template styling

Friends System

Optional friends list system:

Config.Modules = {
    friends = true,  -- Enable friend relationships
}

Commands:

  • /friend add [id] - Add friend
  • /friend remove [id] - Remove friend
  • /friends - View your friends

Benefits:

  • Use {Friends:...} placeholder to show data only to friends
  • Private friend-only channels possible
  • Visual indicator of friends in chat

Auto Messages

Scheduled announcements to all players:

Configure in config/automessages.lua:

Config.AutoMessages = {
    {
        interval = 600,           -- Seconds between messages (600 = 10 min)
        template = 'announce',
        messages = {
            "Visit our Discord: discord.gg/overflow",
            "Use /report for issues",
            "Follow server rules!",
        }
    }
}

Messages rotate through the list every interval.

Discord Webhook Integration

Send chat logs to Discord:

Configure in config/log/config.lua:

Config.Webhooks = {
    ["chat"] = "https://discord.com/api/webhooks/...",
}

Logged messages:

  • /me actions
  • /do descriptions
  • /ooc chat
  • Job whispers
  • Private messages

Locale System

Support multiple languages:

Config.Locale = "en"  -- Change to other available locales

Add translations in config/locales/:

-- config/locales/en.lua
return {
    ["cmd.me"]      = "In-character roleplay action",
    ["cmd.do"]      = "Describe the environment",
    ["error.msg_usage"] = "Usage: /msg [id] [message]",
}

Configuration
/chat/configuration
Commands
../commands/