FiveM插件 IZZY 高级聊天系统 QB ESX 开源汉化版

FiveM插件 IZZY 高级聊天系统 QB ESX 开源汉化

1d1e2b6fe220250711012426

Config = {}

-- Language Settings
Config.Language = 'en' -- 'en', 'tr', 'de', 'fr', 'es'

-- Framework Settings
Config.Framework = {
    autoDetect = true, -- Automatically detect framework
    useCharacterNames = true, -- Use character names instead of steam names for RP chat types
    fallbackToSteam = true -- Fallback to steam name if character name not available
}

-- Chat Settings
Config.MaxMessages = 100 -- Maximum messages to keep in chat history
Config.MessageTimeout = 10000 -- Time in ms before message fades (10 seconds)
Config.EnableTimestamps = true
Config.Enable24HourFormat = true

-- Keybinding Settings
Config.Keybinds = {
    openChat = {
        key = 245, -- T key (default FiveM chat key)
        description = 'Open Chat',
        command = '+openchat'
    },
    closeChat = {
        key = 322, -- ESC key
        description = 'Close Chat'
    }
}

-- Commands
Config.Commands = {
    openChat = 'chat', -- Command to open chat
    clearChat = 'clearchat', -- Command to clear chat
    toggleChat = 'togglechat', -- Command to toggle chat visibility
    me = 'me', -- Me command
    doCommand = 'do', -- Do command
    ooc = 'ooc', -- OOC command
    global = 'global', -- Global command
    img = 'img', -- IMG command
    pm = 'pm', -- Private message command
    music = 'music' -- Music command
}

-- Chat Types and Colors
Config.ChatTypes = {
    ['IMG'] = {
        color = 'rgba(255, 241, 168, 0.33)',
        prefix = 'IMG',
        enabled = true,
        permission = nil,
        transparency = false, -- Images don't fade
        message = true -- Show character name
    },
    ['ME'] = {
        color = 'rgba(93, 133, 255, 0.33)',
        prefix = 'ME',
        enabled = true,
        permission = nil, -- nil = everyone can use
        transparency = false,
        message = true
    },
    ['DO'] = {
        color = 'rgba(156, 114, 255, 0.33)',
        prefix = 'DO',
        enabled = true,
        permission = nil,
        transparency = true, -- DO messages fade
        message = true -- Show character name
    },
    ['OOC'] = {
        color = 'rgba(93, 255, 109, 0.33)',
        prefix = 'OOC',
        enabled = true,
        permission = nil,
        transparency = false -- OOC messages don't fade
    },
    ['GLOBAL'] = {
        color = 'rgba(255, 255, 255, 0.33)',
        prefix = 'Global',
        enabled = true,
        permission = 'admin', -- Only admins can use global
        transparency = false -- Global messages don't fade
    },

    ['PM'] = {
        color = 'rgba(255, 105, 180, 0.33)', -- Pink color for PM
        prefix = 'PM',
        enabled = true,
        permission = nil, -- Everyone can use PM
        transparency = false, -- PM messages don't fade
        message = true -- Show character name
    },
    ['MUSIC'] = {
        color = 'rgba(34, 197, 94, 0.33)', -- Green color for music
        prefix = 'MUSIC',
        enabled = true,
        permission = nil, -- Everyone can use music
        transparency = false, -- Music messages don't fade
        message = true -- Show character name
    }
}

-- UI Settings
Config.UI = {
    enableNotifications = true,
    hideLocalChatWhenNotificationsOff = true, -- Hide ME/DO messages when notifications are disabled
    saveToLocalStorage = true -- Save all settings (colors, notifications, position) to localStorage
}

-- 3D UI Settings
Config.ThreeD = {
    enabled = true,
    duration = 5000, -- Duration in ms (5 seconds)
    distance = 25.0, -- Max distance to see 3D text
    coordsX = 0.0, -- X offset
    coordsY = 0.0, -- Y offset  
    coordsZ = 0.9, -- Z offset (above player head) - Increased for better visibility
    chatTypes = {'ME', 'DO'}, -- Which chat types show in 3D
    icons = {
        ME = 'user',
        DO = 'hand-paper',
        IMG = 'image',
        OOC = 'comments',
        GLOBAL = 'globe',
        PM = 'envelope' -- Private message icon
    }
}

-- YouTube Music Settings
Config.Music = {
    enabled = true,
    apiKey = 'AIzaSyDZgpXJBRTj5UEuuedcAKWHw6QwLNIM5Xw',
    maxVolume = 100,
    defaultVolume = 50,
    allowedDomains = {
        'youtube.com',
        'youtu.be',
        'music.youtube.com'
    }
}

-- Dice Roll Settings
Config.Dice = {
    enabled = true,
    maxNumber = 12, -- Maximum dice number (1-12)
}

-- Permissions (Identifier Based)
-- Usage: steam:id, discord:id, license:id format
Config.Permissions = {
    admin = {
        'discord:483556329781461000',
        'discord:1163479622118297600'
    },
    moderator = {
    }
}

-- Language Translations
Config.Translations = {
    ['en'] = {
        ['chat_opened'] = '聊天已打开',
        ['chat_closed'] = '聊天已关闭',
        ['chat_cleared'] = '聊天已清除',
        ['no_permission'] = '无权限',
        ['invalid_command'] = '无效命令',
        ['enter_message'] = '输入消息...',
        ['enter_command'] = '输入命令...',
        ['chat_ui'] = '聊天UI',
        ['settings'] = '设置',
        ['ui_move'] = '移动UI',
        ['ui_move_desc'] = '移动聊天。自动保存。',
        ['drag_active'] = '拖动激活',
        ['status_color'] = '状态颜色',
        ['status_color_desc'] = '设置颜色。自动保存。',
        ['notification'] = '通知',
        ['notification_desc'] = '切换通知。自动保存。',
        ['on_off'] = '开关',
        ['move'] = '移动',
        ['reset'] = '重置',
        ['top_left'] = '左上角',
        ['top_right'] = '右上角',
        ['left_middle'] = '左中',
        ['image_upload'] = '上传图片',
        ['image_url'] = '图片URL:',
        ['preview'] = '预览:',
        ['cancel'] = '取消',
        ['send'] = '发送',
        ['loading_image'] = '正在加载图片...',
        ['shared_image'] = '共享了一张图片',
        ['select_color'] = '选择颜色',
        ['chat_type'] = '聊天类型',
        ['custom_color'] = '自定义颜色',
        ['apply'] = '应用',
        ['pm_placeholder'] = '私信ID消息',
        ['dice_rolled'] = '掷骰子:',
        ['dice_result'] = '骰子结果'
    },
    ['tr'] = {
        ['chat_opened'] = 'Sohbet açıldı',
        ['chat_closed'] = 'Sohbet kapatıldı',
        ['chat_cleared'] = 'Sohbet temizlendi',
        ['no_permission'] = 'Yetkiniz yok',
        ['invalid_command'] = 'Geçersiz komut',
        ['enter_message'] = 'Mesaj girin...',
        ['enter_command'] = 'Komut veya mesaj girin... (/me, /do, /ooc, /global, /pm)',
        ['chat_ui'] = 'Sohbet Arayüzü',
        ['settings'] = 'Ayarlar',
        ['ui_move'] = 'Arayüz Taşı',
        ['ui_move_desc'] = 'Chat\'i taşı. Otomatik kaydet.',
        ['drag_active'] = 'Sürükleme Aktif',
        ['status_color'] = 'Durum Rengi',
        ['status_color_desc'] = 'Renk ayarla. Otomatik kaydet.',
        ['notification'] = 'Bildirim',
        ['notification_desc'] = 'Bildirimleri aç/kapat. Otomatik kaydet.',
        ['on_off'] = 'Açık/Kapalı',
        ['move'] = 'Taşı',
        ['reset'] = 'Sıfırla',
        ['top_left'] = 'Sol Üst',
        ['top_right'] = 'Sağ Üst',
        ['left_middle'] = 'Sol Orta',
        ['image_upload'] = 'Resim Yükle',
        ['image_url'] = 'Resim URL\'si:',
        ['preview'] = 'Önizleme:',
        ['cancel'] = 'İptal',
        ['send'] = 'Gönder',
        ['loading_image'] = 'Resim yükleniyor...',
        ['shared_image'] = 'Resim paylaştı',
        ['select_color'] = 'Renk Seç',
        ['chat_type'] = 'Sohbet Tipi',
        ['custom_color'] = 'Özel Renk',
        ['apply'] = 'Uygula',
        ['pm_placeholder'] = 'PM ID Mesaj ',
        ['dice_rolled'] = 'Zar Attı:',
        ['dice_result'] = 'Zar Sonucu'
    }
}
© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容