搜索
开启左侧

翻译成中文,保留源代码

[复制链接]
Toyota 发表于 2024-9-4 16:36:34 | 显示全部楼层 |阅读模式

Framework = 0 --[ 1 = ESX / 2 = QBCore / 3 = Other ] Choose your framework

FrameworkTriggers = {
    notify = '', -- [ ESX = 'esx:showNotification' / QBCore = 'QBCore:Notify' ] Set the notification event, if left blank, default will be used
    object = '', --[ ESX = 'esx:getSharedObject' / QBCore = 'QBCore:GetObject' ] Set the shared object event, if left blank, default will be used (deprecated for QBCore)
    resourceName = '', -- [ ESX = 'es_extended' / QBCore = 'qb-core' ] Set the resource name, if left blank, automatic detection will be performed
}

UseOxInventory = nil
DisableMysql = false

-- If True, will use old non-additive rendering style
-- the sprays will look a bit "out of place" and won't blend into it's wall well
UseLegacyRendering = false

-- experimental optimization
FrustumCullSprays = false

Config = {
    -- example config for other persistance durations
    ---- 1/24/60/60 * (60*60) => 1 hour
    ---- 1/24/60/60 * (60*60*6) => 6 hours
    ---- 1/24/60/60 * (60*60*12) => 12 hours
    SPRAY_PERSIST_DAYS = 2, -- days
    SPRAY_PROGRESSBAR_DURATION = 20000,
    SPRAY_REMOVE_DURATION = 30000,

    SPRAY_CHAR_LIMIT = 9,

    -- seconds
    SprayCooldownTime = 15 * 60,
    SprayRenderDistance = 100.0,

    -- how many should the player be able to spray within SprayCooldownTime
    -- -1 -> not limited by cooldown
    -- example: if SprayCooldownTime = 15*60 and SprayCooldownTotal=3,
    --          a player will be able to spray 3 sprays every 15 minutes
    SprayCooldownTotal = -1,

    Keys = {
        CANCEL = {code = 194, label = 'INPUT_FRONTEND_RRIGHT'},
    },

    Blacklist = {
        'nigger',
        'niger',
        'nigga',
    },

    DisableText = false,


    -- Renders a sphere representing the blacklist zone
    BlacklistZoneDebug = false,

    BlacklistZones = {
        -- {
        --     pos = vector3(449.49, -987.4, 30.68),
        --     range = 30.0,
        -- }
    },

    Text = {
        CANCEL = 'Cancel',
        SPRAY_ERRORS = {
            NOT_FLAT = 'This surface is not flat enough',
            TOO_FAR = 'The surface is too far',
            INVALID_SURFACE = 'It cannot be sprayed on this surface',
            AIM = 'Aim the spray at a flat wall',
            CANT_OVERLAP = 'Graffiti can\'t overlap',
            IN_BLACKLIST_ZONE = 'You can\'t grafitti in this area',
        },
        NO_SPRAY_NEARBY = 'There is no spray nearby to remove',
        NEED_SPRAY = 'You do not have any spray to spray with',
        WORD_LONG = 'Spray word can be at most 9 characters',
        USAGE = 'Usage: /spray',
        SPRAY_LIMIT_COOLDOWN = 'You exceeded the amount of allowed graffiti within a time period. Try again later.',
        NUI_TEXT = {
            ['text'] = 'TEXT',
            ['image'] = 'IMAGE',
            ['word-not-allowed'] = 'This word is not allowed!',
            ['color'] = 'color',
            ['spray'] = 'SPRAY',
            ['click-to-select'] = 'CLICK TO SELECT',
            ['cancel'] = 'CANCEL',
            ['keybind-spray'] = 'Spray',
            ['keybind-change-size'] = 'Change Size',
            ['keybind-back'] = 'Back',
            ['input-placeholder'] = 'Your graffiti text here',
            ['default-graffiti'] = 'GRAFFITI',
            ['save-color'] = 'Save',
        }
    }
}

FONTS = {
    {
        font = 'graffiti1',
        label = 'Next Custom',
        allowed = '^[A-Z0-9\\-.]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9\\-.]+',
        sizeMult = 0.35,
    },
    {
        font = 'graffiti2',
        label = 'Dripping Marker',
        allowed = '^[A-Za-z0-9]+$',
        allowedInverse = '[^A-Za-z0-9]+',
        sizeMult = 1.0,
    },
    {
        font = 'graffiti6',
        label = 'Barrio Santo',
        forceUppercase = true,
        allowed = '^[A-Z0-9]+$',
        allowedInverse = '[^A-Z0-9]+',
        sizeMult = 0.90,
    },
    {
        font = 'graffiti7',
        label = 'Bomb',
        allowed = '^[A-Z0-9!?]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9!?]+',
        sizeMult = 0.75,
    },
    {
        font = 'graffiti8',
        label = 'Bombing',
        allowed = '^[A-Z0-9!?+\\-*/]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9!?+\\-*/]+',
        sizeMult = 1.15,
    },
    {
        font = 'graffiti9',
        label = 'Train Gangsta',
        allowed = '^[A-Z0-9?!]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9?!]+',
        sizeMult = 0.6,
    },
    {
        font = 'graffiti10',
        label = 'Street Wrister',
        allowed = '^[A-Z0-9!?+\\-*/]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9!?+\\-*/]+',
        sizeMult = 1.0,
    },
    {
        font = 'graffiti11',
        label = 'Peinture Fraiche',
        allowed = '^[A-Z0-9!?+\\-*/]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9!?+\\-*/]+',
        sizeMult = 1.0,
    },
    {
        font = 'PricedownGTAVInt',
        label = 'Pricedown',
        allowed = '^[A-Za-z0-9]+$',
        allowedInverse = '[^A-Za-z0-9]+',
        sizeMult = 0.75,
    },
    {
        font = 'blockt',
        label = 'Blockt',
        allowed = '^[A-Za-z0-9]+$',
        allowedInverse = '[^A-Za-z0-9]+',
        sizeMult = 0.75,
    },
    {
        font = 'nmfburner',
        label = 'NMF Burner',
        allowed = '^[A-Za-z0-9]+$',
        allowedInverse = '[^A-Za-z0-9]+',
        sizeMult = 0.75,
    },
    {
        font = 'reskagraf',
        label = 'ReskaGraf',
        allowed = '^[A-Za-z0-9]+$',
        allowedInverse = '[^A-Za-z0-9]+',
        sizeMult = 0.75,
    },
}


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-9-4 16:36:51 | 显示全部楼层
Framework = 0 -- 选择你的框架

FrameworkTriggers = {
    notify = '', -- 设置通知事件,如果留空,将使用默认值
    object = '', -- 设置共享对象事件,如果留空,将使用默认值(QBCore已弃用)
    resourceName = '', -- 设置资源名称,如果留空,将进行自动检测
}

UseOxInventory = nil
DisableMysql = false

-- 如果为真,将使用旧的非加法渲染风格
-- 喷雾看起来会有点“格格不入”,并且不会很好地融入墙壁
UseLegacyRendering = false

-- 实验性优化
FrustumCullSprays = false

Config = {
    -- 其他持久性持续时间的示例配置
    ---- 1/24/60/60 * (60*60) => 1小时
    ---- 1/24/60/60 * (60*60*6) => 6小时
    ---- 1/24/60/60 * (60*60*12) => 12小时
    SPRAY_PERSIST_DAYS = 2, -- 天数
    SPRAY_PROGRESSBAR_DURATION = 20000,
    SPRAY_REMOVE_DURATION = 30000,

    SPRAY_CHAR_LIMIT = 9,

    -- 秒
    SprayCooldownTime = 15 * 60,
    SprayRenderDistance = 100.0,

    -- 玩家在SprayCooldownTime内可以喷涂多少次
    -- -1 -> 不受冷却限制
    -- 示例:如果 SprayCooldownTime = 15*60 且 SprayCooldownTotal=3,
    --          玩家每15分钟可以喷涂3次
    SprayCooldownTotal = -1,

    Keys = {
        CANCEL = {code = 194, label = 'INPUT_FRONTEND_RRIGHT'},
    },

    Blacklist = {
        'nigger',
        'niger',
        'nigga',
    },

    DisableText = false,

    -- 渲染一个表示黑名单区域的球体
    BlacklistZoneDebug = false,

    BlacklistZones = {
        -- {
        --     pos = vector3(449.49, -987.4, 30.68),
        --     range = 30.0,
        -- }
    },

    Text = {
        CANCEL = '取消',
        SPRAY_ERRORS = {
            NOT_FLAT = '这个表面不够平坦',
            TOO_FAR = '表面太远',
            INVALID_SURFACE = '无法在此表面喷涂',
            AIM = '将喷雾瞄准平坦的墙面',
            CANT_OVERLAP = '涂鸦不能重叠',
            IN_BLACKLIST_ZONE = '您不能在此区域涂鸦',
        },
        NO_SPRAY_NEARBY = '附近没有可以移除的喷雾',
        NEED_SPRAY = '您没有喷雾可以使用',
        WORD_LONG = '喷涂文字最多为9个字符',
        USAGE = '用法: /spray',
        SPRAY_LIMIT_COOLDOWN = '您在一段时间内超过了允许的涂鸦数量。请稍后再试。',
        NUI_TEXT = {
            ['text'] = '文本',
            ['image'] = '图像',
            ['word-not-allowed'] = '此词不被允许!',
            ['color'] = '颜色',
            ['spray'] = '喷涂',
            ['click-to-select'] = '点击选择',
            ['cancel'] = '取消',
            ['keybind-spray'] = '喷涂',
            ['keybind-change-size'] = '改变大小',
            ['keybind-back'] = '返回',
            ['input-placeholder'] = '在此输入您的涂鸦文本',
            ['default-graffiti'] = '涂鸦',
            ['save-color'] = '保存',
        }
    }
}

FONTS = {
    {
        font = 'graffiti1',
        label = '下一个自定义',
        allowed = '^[A-Z0-9\\-.]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9\\-.]+',
        sizeMult = 0.35,
    },
    {
        font = 'graffiti2',
        label = '滴水标记',
        allowed = '^+$',
        allowedInverse = '+',
        sizeMult = 1.0,
    },
    {
        font = 'graffiti6',
        label = 'Barrio Santo',
        forceUppercase = true,
        allowed = '^+$',
        allowedInverse = '+',
        sizeMult = 0.90,
    },
    {
        font = 'graffiti7',
        label = '炸弹',
        allowed = '^+$',
        forceUppercase = true,
        allowedInverse = '+',
        sizeMult = 0.75,
    },
    {
        font = 'graffiti8',
        label = '轰炸',
        allowed = '^[A-Z0-9!?+\\-*/]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9!?+\\-*/]+',
        sizeMult = 1.15,
    },
    {
        font = 'graffiti9',
        label = '火车黑帮',
        allowed = '^+$',
        forceUppercase = true,
        allowedInverse = '+',
        sizeMult = 0.6,
    },
    {
        font = 'graffiti10',
        label = '街头书法',
        allowed = '^[A-Z0-9!?+\\-*/]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9!?+\\-*/]+',
        sizeMult = 1.0,
    },
    {
        font = 'graffiti11',
        label = '新鲜涂料',
        allowed = '^[A-Z0-9!?+\\-*/]+$',
        forceUppercase = true,
        allowedInverse = '[^A-Z0-9!?+\\-*/]+',
        sizeMult = 1.0,
    },
    {
        font = 'PricedownGTAVInt',
        label = '价格下降',
        allowed = '^+$',
        allowedInverse = '+',
        sizeMult = 0.75,
    },
    {
        font = 'blockt',
        label = '块状',
        allowed = '^+$',
        allowedInverse = '+',
        sizeMult = 0.75,
    },
    {
        font = 'nmfburner',
        label = 'NMF燃烧器',
        allowed = '^+$',
        allowedInverse = '+',
        sizeMult = 0.75,
    },
    {
        font = 'reskagraf',
        label = 'ReskaGraf',
        allowed = '^+$',
        allowedInverse = '+',
        sizeMult = 0.75,
    },
}
回复

使用道具 举报

文明发言,和谐互动
文明发言,和谐互动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-2-9 02:13 , Processed in 0.112638 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2013 ELITE论坛【技术无价-分享快乐】

快速回复 返回顶部 返回列表