搜索
开启左侧

翻译

[复制链接]
猪猪侠 发表于 2024-5-26 01:11:45 | 显示全部楼层 |阅读模式
Config = {}
Translation = {}

Translation = {
    ['de'] = {
        ['DJ_interact'] = 'Drücke ~g~E~s~, um auf das DJ Pult zuzugreifen',
        ['title_does_not_exist'] = '~r~Dieser Titel existiert nicht!',
    },

    ['en'] = {
        ['DJ_interact'] = 'Press ~g~E~s~, to mix',
        ['title_does_not_exist'] = '~r~This song doesnt exist!',
    }
}

Config.Locale = 'en'

Config.useESX = true -- can not be disabled without changing the callbacks
Config.enableCommand = false

Config.enableMarker = true -- purple marker at the DJ stations

Config.DJPositions = {
    {
        name = 'bahama',
        pos = vector3(116.81999969482422, -1281.7900390625, 29.26000022888183),
        requiredJob = nil,
        range = 25.0,
        volume = 1.0 --[[ do not touch the volume! --]]
    }

    --{name = 'bahama', pos = vector3(-1381.01, -616.17, 31.5), requiredJob = 'DJ', range = 25.0}
}

回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-5-26 01:11:57 | 显示全部楼层
Config = {}
Translation = {}

Translation = {
    en = {
        accessDJTable = 'Press ~g~E~s~ to access the DJ table',
        songNotExist = '~r~This song doesn\'t exist!',
    },

    de = {
        accessDJTable = 'Drücke ~g~E~s~, um auf das DJ Pult zuzugreifen',
        songNotExist = '~r~Dieser Titel existiert nicht!',
    }
}

Config.Locale = 'en'

Config.useESX = true -- 不能在不更改回调函数的情况下禁用
Config.enableCommand = false

Config.enableMarker = true -- 在DJ站点上显示紫色标记

Config.DJPositions = {
    {
        name = 'bahama',
        pos = vector3(116.81999969482422, -1281.7900390625, 29.26000022888183),
        requiredJob = nil,
        range = 25.0,
        volume = 1.0 --[]
    }
}
```lua
此代码应该放在服务器的脚本文件server.lua中。因为它涉及到DJ位置和权限,需要在服务器端运行以确保所有玩家都能正确访问DJ位置并受到所需权限的限制。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-9 05:30 , Processed in 0.074576 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

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

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