搜索
开启左侧

翻译

[复制链接]
猪猪侠 发表于 2024-5-20 09:45:44 | 显示全部楼层 |阅读模式
Config.EnableNotifications = false -- Do you want notifications when a player enters and exits the preconfigured greenzones (The Config.GreenZones)?
Config.GreenzonesCommand = 'setzone' -- The command to run in-game to start creating a temporary greenzone
Config.GreenzonesClearCommand = 'clearzone' -- The command to run in-game to clear an existing temporary greenzone

Config.GreenZones = { -- These are persistent greenzones that exist constantly, at all times - you can create as many as you want here
    ['hospital'] = {
        coords = vec3(299.2270, -584.6892, 43.2608), -- The center-most location of the greenzone
        radius = 100.0, -- The radius (how large or small) the greenzone is (note: this must include the .0 on the end of the number to work)
        disablePlayerVehicleCollision = false, -- Do you want to disable players & their vehicles collisions between each other? (true if yes, false if no)
        enableSpeedLimits = true, -- Do you want to enforce a speed limit in this zone? (true if yes, false if no)
        setSpeedLimit = 30, -- The speed limit (in MPH) that will be enforced in this zone if enableSpeedLimits is true
        removeWeapons = true, -- Do you want to remove weapons completely from players hands while in this zone? (true if yes, false if no)
        disableFiring = true, -- Do you want to disable everyone from firing weapons/punching/etc in this zone? (true if yes, false if no)
        setInvincible = true, -- Do you want everyone to be invincible in this zone? (true if yes, false if no)
        displayTextUI = true, -- Do you want textUI to display on everyones screen while in this zone? (true if yes, false if no)
        textToDisplay = 'Hospital Green Zone', -- The text to display on everyones screen if displayTextUI is true for this zone
        backgroundColorTextUI = '#ff5a47', -- The color of the textUI background to display if displayTextUI is true for this zone
        textColor = '#000000', -- The color of the text & icon itself on the textUI if displayTextUI is true for this zone
        displayTextPosition = 'top-center', -- The position of the textUI if displayTextUI is true for this zone
        displayTextIcon = 'hospital', -- The icon to be displayed on the TextUI in this zone if displayTextUI is true
        blip = true, -- Do you want a blip to display on the map here? True for yes, false for no
        blipType = 'radius', -- Type can be 'radius' or 'normal'
        enableSprite = false, -- Do you want a sprite at the center of the radius blip? (If blipType = 'normal', this don't matter, it will display a sprite)
        blipSprite = 621, -- Blip sprite (https://docs.fivem.net/docs/game-references/blips/) (only used if enableSprite = true, otherwise can be ignored)
        blipColor = 2, -- Blip color (https://docs.fivem.net/docs/game-references/blips/#blip-colors)
        blipScale = 0.7, -- Blip size (0.01 to 1.0) (only used if enableSprite = true, otherwise can be ignored)
        blipAlpha = 100, -- The transparency of the radius blip if blipType = 'radius', otherwise not used/can be ignored
        blipName = 'Hospital Greenzone' -- Blip name on the map (if enableSprite = true, otherwise can be ignored)
    },
    ['policestation'] = {
        coords = vec3(432.7403, -982.1954, 30.7105),
        radius = 100.0,
        disablePlayerVehicleCollision = false,
        enableSpeedLimits = true,
        setSpeedLimit = 40,
        removeWeapons = false,
        disableFiring = true,
        setInvincible = false,
        displayTextUI = true,
        textToDisplay = 'Police Green Zone',
        backgroundColorTextUI = '#ff5a47',
        textColor = '#000000',
        displayTextPosition = 'top-center',
        displayTextIcon = 'shield-halved',
        blip = true,
        blipType = 'radius',
        enableSprite = false,
        blipSprite = 621,
        blipColor = 2,
        blipScale = 0.7,
        blipAlpha = 100,
        blipName = 'LSPD Greenzone'
    },
    ['examplelocation3'] = {
        coords = vec3(-1243.6606, 1348.0383, 212.7915),
        radius = 200.0,
        disablePlayerVehicleCollision = false,
        enableSpeedLimits = false,
        setSpeedLimit = 40,
        removeWeapons = true,
        disableFiring = false,
        setInvincible = true,
        displayTextUI = true,
        textToDisplay = 'Random Green Zone',
        backgroundColorTextUI = '#ff5a47',
        textColor = '#000000',
        displayTextPosition = 'top-center',
        displayTextIcon = 'box',
        blip = true,
        blipType = 'radius',
        enableSprite = false,
        blipSprite = 621,
        blipColor = 2,
        blipScale = 0.8,
        blipAlpha = 100,
        blipName = 'Another Greenzone'
    }
    -- Create more zones here by following the same format as above
}

Notifications = {
    position = 'top', -- The position for all notifications
    greenzoneTitle = 'Green Zone', -- Title when entering a greenzone
    greenzoneIcon = 'border-all', -- The icon displayed on the notifications
    greenzoneEnter = 'You have entered a greenzone and certain actions have been disabled', -- Description when entering a greenzone
    greenzoneExit = 'You have exited a greenzone and all actions have been restored', -- Description when exiting a greenzone

回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-5-20 09:46:05 | 显示全部楼层
Config.EnableNotifications = false -- 当玩家进入和离开预设的绿色区域(Config.GreenZones)时,是否希望收到通知?
Config.GreenzonesCommand = 'setzone' -- 在游戏中运行的命令,用于创建临时绿色区域
Config.GreenzonesClearCommand = 'clearzone' -- 在游戏中运行的命令,用于清除已存在的临时绿色区域

Config.GreenZones = { -- 这些是持久性绿色区域,始终存在 - 您可以在这里创建任意数量的绿色区域
     = {
        coords = vec3(299.2270, -584.6892, 43.2608), -- 绿色区域的中心位置
        radius = 100.0, -- 绿色区域的半径(大小)(注意:数字末尾必须包含 .0 才能生效)
        disablePlayerVehicleCollision = false, -- 是否要禁用玩家和车辆之间的碰撞?(是为 true,否为 false)
        enableSpeedLimits = true, -- 是否要在此区域实施速度限制?(是为 true,否为 false)
        setSpeedLimit = 30, -- 如果 enableSpeedLimits 为 true,则在此区域强制执行的速度限制(英里/小时)
        removeWeapons = true, -- 是否要完全从玩家手中移除武器?(是为 true,否为 false)
        disableFiring = true, -- 是否要禁止所有人在此区域开火/近身攻击等?(是为 true,否为 false)
        setInvincible = true, -- 是否希望所有人在此区域中无敌?(是为 true,否为 false)
        displayTextUI = true, -- 在此区域内是否希望在每个人屏幕上显示文本UI?(是为 true,否为 false)
        textToDisplay = '医院绿色区域', -- 如果 displayTextUI 是 true,则在此区域中显示在每个人屏幕上的文本
        backgroundColorTextUI = '#ff5a47', -- 如果 displayTextUI 是 true,则用于显示文本UI背景的颜色
        textColor = '#000000', -- 如果 displayTextUI 是 true,则在此区域中显示文本和图标本身的颜色
        displayTextPosition = 'top-center', -- 如果 displayTextUI 是 true,则在此区域中显示文本UI的位置
        displayTextIcon = 'hospital', -- 如果 displayTextUI 是 true,则在此区域中文本UI上显示的图标
        blip = true, -- 是否要在地图上显示一个提示?是为 true,否为 false
        blipType = 'radius', -- 类型可以是 'radius' 或 'normal'
        enableSprite = false, -- 是否要在半径提示的中心显示一个精灵?(如果 blipType = 'normal',则此项无关紧要,将显示一个精灵)
        blipSprite = 621, -- 提示精灵(https://docs.fivem.net/docs/game-references/blips/)(仅当 enableSprite = true 时使用,否则可忽略)
        blipColor = 2, -- 提示颜色(https://docs.fivem.net/docs/game-references/blips/#blip-colors)
        blipScale = 0.7, -- 提示大小(0.01 到 1.0)(仅当 enableSprite = true 时使用,否则可忽略)
        blipAlpha = 100, -- 如果 blipType = 'radius',则为半径提示的透明度,否则不使用/可忽略
        blipName = '医院绿色区域' -- 地图上的提示名称(如果 enableSprite = true,否则可忽略)
    },
     = {
        coords = vec3(432.7403, -982.1954, 30.7105),
        radius = 100.0,
        disablePlayerVehicleCollision = false,
        enableSpeedLimits = true,
        setSpeedLimit = 40,
        removeWeapons = false,
        disableFiring = true,
        setInvincible = false,
        displayTextUI = true,
        textToDisplay = '警察绿色区域',
        backgroundColorTextUI = '#ff5a47',
        textColor = '#000000',
        displayTextPosition = 'top-center',
        displayTextIcon = 'shield-halved',
        blip = true,
        blipType = 'radius',
        enableSprite = false,
        blipSprite = 621,
        blipColor = 2,
        blipScale = 0.7,
        blipAlpha = 100,
        blipName = 'LSPD绿色区域'
    },
     = {
        coords = vec3(-1243.6606, 1348.0383, 212.7915),
        radius = 200.0,
        disablePlayerVehicleCollision = false,
        enableSpeedLimits = false,
        setSpeedLimit = 40,
        removeWeapons = true,
        disableFiring = false,
        setInvincible = true,
        displayTextUI = true,
        textToDisplay = '随机绿色区域',
        backgroundColorTextUI = '#ff5a47',
        textColor = '#000000',
        displayTextPosition = 'top-center',
        displayTextIcon = 'box',
        blip = true,
        blipType = 'radius',
        enableSprite = false,
        blipSprite = 621,
        blipColor = 2,
        blipScale = 0.8,
        blipAlpha = 100,
        blipName = '另一个绿色区域'
    }
    -- 通过按照上述格式创建更多区域
}

Notifications = {
    position = 'top', -- 所有通知的位置
    greenzoneTitle = '绿色区域', -- 进入绿色区域时的标题
    greenzoneIcon = 'border-all', -- 通知上显示的图标
    greenzoneEnter = '您已进入绿色区域,某些操作已被禁用', -- 进入绿色区域时的描述
    greenzoneExit = '您已退出绿色区域,所有操作已恢复', -- 退出绿色区域时的描述
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-9 05:13 , Processed in 0.067390 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

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

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