猪猪侠 发表于 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位置并受到所需权限的限制。
页: [1]
查看完整版本: 翻译