Every guide, by script
Start at the top if this is your first Crystal Series resource. Every guide is self-contained — jump straight to the script you need.
Crystal Chat
Crystal Chat (metaverse_chat) is a 100% drop-in Liquid Glass replacement for the default FiveM chat. It ships with provide 'chat' and supports all standard CFX events and exports so 99% of existing FiveM scripts work out of the box.
ensure chat line in your server.cfg before starting metaverse_chat. Running both simultaneously will cause duplicate chat windows.default (or chat / cfx-default). Because metaverse_chat includes provide 'chat' and handles all standard CFX chat events (chat:addMessage, chat:addSuggestion, chat:clear), it works Plug & Play with zero bridge required.Installation & Load Order
After purchasing Crystal Chat, sign in to Cfx.re Portal (Keymaster) under Granted Assets, download the archive, and extract metaverse_chat into your resources/ folder.
metaverse_chat/
├── config/
│ ├── config.lua -- Main configuration (100% open & editable)
│ └── discord_logs.lua -- Server-only webhook config (never sent to clients)
├── locales/ -- 6 languages: en, fr, tr, de, es, pt (editable)
└── sql/
└── metaverse_chat.sql -- Optional backup (auto-created on first start)
# 1. Start database & framework first
ensure oxmysql
ensure qbx_core # or es_extended / qb-core / ox_core
# 2. Disable default CFX chat
# ensure chat
# 3. Start Crystal Chat BEFORE scripts that register chat suggestions
ensure metaverse_chat
Config.Database.Enabled = true, the metaverse_chat_settings table is created automatically on first server boot via oxmysql.Feature Toggles & Commands-Only Mode
Every module and individual channel can be enabled or disabled in a single line inside config/config.lua (Config.Features). Disabled channels automatically hide their UI tab and unregister their slash command.
| Option | Default | What it controls |
|---|---|---|
CommandsOnly | false | Set true to disable all chat channels and use chat strictly for slash commands (/car, /dv, etc.). |
ChannelBar | true | Shows or hides the top channel tabs bar. |
Emojis / Suggestions | true | Emoji picker + emoticon parser (:), :fire:) and floating command autocomplete chips. |
SettingsMenu / PositionEditor | true | In-game settings modal (gear icon) and drag-and-drop position editor (move icon). |
OverheadMessages / TypingDots | true | 3D floating Liquid Glass bubbles for /me & /do and live ... typing indicator above heads. |
ChannelAll … ChannelHistory | true | Individually toggle ALL, /ooc, /me, /do, /pm, /sv, /dispatch, /gang, and HISTORY. |
AutoMessages | true | Scheduled automatic server rotation messages (automatically skipped when 0 players are online). |
Languages, Frameworks & Database
Crystal Chat includes 6 built-in translations (en, fr, tr, de, es, pt) and auto-detects your FiveM framework.
Config.Locale = 'en' -- 'en' | 'fr' | 'tr' | 'de' | 'es' | 'pt'
Config.Framework = 'auto' -- 'auto' | 'esx' | 'qb' | 'qbx' | 'ox' | 'standalone'
Config.Database = {
Enabled = true,
Table = 'metaverse_chat_settings',
IdentifierType = 'license', -- Shared across characters
}
Appearance, Presets & Visibility
Set server-wide defaults while letting players customize their own theme, fine scale (0.75–1.35), blur, sounds, and screen position in-game:
Config.DefaultPreset = 'amethyste' -- aurore | solaire | amethyste | emeraude | crepuscule | rubis | graphite
Config.DefaultTheme = 'dark' -- 'dark' | 'light' | 'dynamic' (auto day/night)
Config.DefaultVisibility = 'ON_INPUT'-- 'VISIBLE' | 'ON_INPUT' | 'HIDDEN'
Config.AutoHideMs = 4000 -- Fade-out delay in ON_INPUT mode
Config.MaxVisibleMessages = 4 -- Live bubbles shown on screen
Config.MaxHistoryMessages = 120 -- Messages kept in HISTORY tab
Config.OpenKey = 'T' -- Default open keybind
Config.CooldownMs = 600 -- Server-side anti-spam cooldown (ms)
Dispatch & Isolated Gang Channels
Dispatch restricts access to listed emergency jobs (police, sheriff, ambulance) with dynamic callsign/grade badges and optional AceOverride = 'metaverse.chat.dispatch'.
Gangs are strictly isolated per faction — e.g. ballas never see vagos messages. Supports both framework jobs, gangs, and standalone ACE permissions (metaverse.gang.ballas, etc.).
Config.Dispatch.Jobs.firefighter = {
tag = 'LSFD',
color = '#f97316',
badge = function(player)
return (player.callsign and player.callsign ~= '') and player.callsign or ('FD-%d'):format(player.source)
end,
}
3D Overhead Bubbles & Typing Dots
Configure range, duration, and wall-occlusion (CheckLineOfSight = true) for 3D overhead /me, /do, and typing dots inside Config.Overhead and Config.TypingDots:
Config.Overhead = {
Enabled = true,
DurationMs = 10000,
Distance = 5.0,
CheckLineOfSight = true, -- Hidden behind walls & vehicles
HeightOffset = 0.42,
}
Config.TypingDots = {
Enabled = true,
Distance = 5.0,
CheckLineOfSight = true,
Channels = { me = true, ['do'] = true },
}
Discord Webhook Logs (Server-Only)
config/discord_logs.lua is loaded strictly under server_scripts and is never sent to clients. You can set a single global webhook, a server.cfg convar, or individual per-channel webhooks.
set metaverse_chat_webhook "https://discord.com/api/webhooks/YOUR_ID/YOUR_TOKEN"
Enable DiscordLogs.Enabled = true in config/discord_logs.lua and toggle logging per channel (ooc, me, do, pm, sv, dispatch, gang, admin) or route each channel to its own Discord channel via DiscordLogs.ChannelWebhooks.
Commands, ACE Permissions & Exports
Standard CFX events (chat:addMessage, chat:addTemplate, chat:addSuggestion, chat:removeSuggestion, chat:clear) work natively. For custom scripts, you can also call our dedicated exports:
| Side | Export / Command | Description |
|---|---|---|
| Server | exports.metaverse_chat:sendMessage(target, msg) | Send a formatted message object to a player ID (or -1 for all). |
| Server | exports.metaverse_chat:broadcast(text, channel, author) | Broadcast text to all players on a specific channel (e.g. 'sv'). |
| Server | exports.metaverse_chat:clearChat(target) | Clear chat feed for a player ID or everyone (-1). |
| Server | exports.metaverse_chat:isAdmin(src) | Check whether a player has Crystal Chat admin ACE permission. |
| Client | exports.metaverse_chat:hideChat(bool) | Hide or show the chat UI (ideal during cutscenes or phone/NUI focus). |
| Client | exports.metaverse_chat:openSettings() / openEditor() | Programmatically open the settings modal or drag-and-drop position editor. |
| Client | exports.metaverse_chat:isOpen() | Returns true when the chat input, settings, or editor is currently active. |
Common Errors & Troubleshooting
- Two chat boxes appear on screen — Make sure the default
ensure chatline is removed or commented out inserver.cfg. - Dispatch or Gang tab is missing — By default
HideTabForUnauthorized = truehides those tabs from civilians. Verify the player's job/gang matchesConfig.Dispatch.Jobs/Config.Gangs.Factionsor grant the ACE override. - Discord logs not sending — Confirm
DiscordLogs.Enabled = trueand check that eitherDiscordLogs.Webhookor themetaverse_chat_webhookconvar is set. - Escrow syntax / decryption error on boot — Update your FXServer artifacts to v5181+ and make sure your server license key belongs to the Cfx.re account that owns the asset.
Crystal UI Pack
Replaces every standard ox_lib interface with unified Cristal Spatial Liquid Glass & Solid components and gives players a full /uisettings customization center.
Installation
ensure ox_lib
ensure metaverse_uipack
ox_lib Bridge
Crystal UI Pack includes a safe automatic fallback bridge inside ox_lib/resource/init.lua. If metaverse_uipack is stopped, every script falls back seamlessly to native ox_lib.
/uisettings & Admin Locks
Players can type /uisettings to pick from 7 Crystal presets, toggle Glass/Solid mode, choose Notification & Text UI positions, and toggle UI sounds. Server owners can lock any option via Config.Locks.
Testing & Exports
/testui all -- Preview every UI component live in-game
/uisettings -- Open the Crystal UI Settings panel
Crystal Inventory
A 100% original 3-column Liquid Glass inventory featuring a real-time rotatable 3D ped, 14 clothing slots + full outfit slot, integrated NPC shops in the right column, vehicle trunks, and drop-in ox_inventory compatibility.
ox_inventory so third-party escrowed scripts checking GetResourceState('ox_inventory') detect it automatically without any edits.Installation
ensure oxmysql
ensure ox_lib
ensure ox_inventory
Clothing & 3D Ped
Players can drag clothing items directly onto the 14 body slots or save/swap their full outfit with the OUTFIT slot. All equip/unequip actions are server-authoritative with anti-duplication locks.
Integrated Shops
When interacting with a 24/7, LTD, Hardware, or Ammu-Nation shopkeeper, the right column of the inventory turns into a Liquid Glass shop with categories, sorting, collapsible cart, and Cash/Bank checkout.
Keybinds & Weapons
Default binds: F2 opens the inventory, TAB toggles the quick hotbar (native GTA weapon wheel is automatically suppressed), and R reloads equipped weapons.
Crystal Pause Menu
Replaces the default GTA V pause menu with a sleek, zero-bloat Liquid Glass dashboard displaying live character info, quick map/settings access, and Discord links.
Installation
ensure metaverse_pause
Configuration
Customize your server name, Discord invite, rules link, and default Crystal preset in config/config.lua.