翻译
Config = {}
Config.Debug = false -- Set to true to enable debug mode
Config.DatabaseChecker = {}
Config.DatabaseChecker.Enabled = true -- if true, the phone will check the database for any issues and fix them if possible
Config.DatabaseChecker.AutoFix = true
--[[ FRAMEWORK OPTIONS ]] --
Config.Framework = "auto"
--[[
Supported frameworks:
* auto: auto-detect framework (ONLY WORKS WITH THE ONES LISTED BELOW)
* esx: es_extended, https://github.com/esx-framework/esx-legacy
* qb: qb-core, https://github.com/qbcore-framework/qb-core
* ox: ox_core, https://github.com/overextended/ox_core
* vrp2: vrp 2.0 (ONLY THE OFFICIAL vRP 2.0, NOT CUSTOM VERSIONS)
* standalone: no framework, note that framework specific apps will not work unless you implement the functions
Config.CustomFramework = false -- if set to true and you use standalone, you will be able to use framework specific apps
Config.QBMailEvent = true -- if you want this script to listen for qb email events, enable this.
Config.QBOldJobMethod = false -- use the old method to check job in qb-core? this is slower, and only needed if you use an outdated version of qb-core.
Config.Item = {}
Config.Item.Require = true -- require a phone item to use the phone
Config.Item.Name = "phone" -- name of the phone item
Config.Item.Unique = false -- should each phone be unique? https://docs.lbscripts.com/phone/configuration/#unique-phones
Config.Item.Inventory = "auto" --[[
The inventory you use, IGNORE IF YOU HAVE Config.Item.Unique DISABLED.
Supported:
* auto: auto-detect inventory (ONLY WORKS WITH THE ONE LISTED BELOW)
* ox_inventory - https://github.com/overextended/ox_inventory
* qb-inventory - https://github.com/qbcore-framework/qb-inventory
* lj-inventory - https://github.com/loljoshie/lj-inventory
* core_inventory - https://www.c8re.store/package/5121548
* mf-inventory - https://modit.store/products/mf-inventory?variant=39985142268087
* qs-inventory - https://buy.quasar-store.com/package/4770732
* codem-inventory - https://codem.tebex.io/package/5900973
Config.ServerSideSpawn = false -- should entities be spawned on the server? (phone prop, vehicles)
Config.PhoneModel = `lb_phone_prop` -- the prop of the phone, if you want to use a custom phone model, you can change this here
Config.PhoneRotation = vector3(0.0, 0.0, 180.0) -- the rotation of the phone when attached to a player
Config.PhoneOffset = vector3(0.0, -0.005, 0.0) -- the offset of the phone when attached to a player
Config.DynamicIsland = true -- if enabled, the phone will have a Iphone 14 Pro inspired Dynamic Island.
Config.SetupScreen = true -- if enabled, the phone will have a setup screen when the player first uses the phone.
Config.AutoDeleteNotifications = false -- notifications that are more than X hours old, will be deleted. set to false to disable. if set to true, it will delete 1 week old notifications.
Config.MaxNotifications = 100 -- the maximum amount of notifications a player can have. if they have more than this, the oldest notifications will be deleted. set to false to disable
Config.DisabledNotifications = { -- an array of apps that should not send notifications, note that you should use the app identifier, found in config.json
-- "DarkChat",
}
Config.WhitelistApps = {
-- ["test-app"] = {"police", "ambulance"}
}
Config.BlacklistApps = {
-- ["DarkChat"] = {"police"}
}
Config.ChangePassword = {
["Trendy"] = true,
["InstaPic"] = true,
["Birdy"] = true,
["DarkChat"] = true,
["Mail"] = true,
}
Config.DeleteAccount = {
["Trendy"] = false,
["InstaPic"] = false,
["Birdy"] = false,
["DarkChat"] = false,
["Mail"] = false,
["Spark"] = false,
}
Config.Companies = {}
Config.Companies.Enabled = true -- allow players to call companies?
Config.Companies.MessageOffline = true -- if true, players can message companies even if no one in the company is online
Config.Companies.DefaultCallsDisabled = false -- should receiving company calls be disabled by default?
Config.Companies.AllowAnonymous = false -- allow players to call companies with "hide caller id" enabled?
Config.Companies.SeeEmployees = "everyone" -- who should be able to see employees? they will see name, online status & phone number. options are: "everyone", "employees" or "none"
Config.Companies.DeleteConversations = true -- allow employees to delete conversations?
Config.Companies.Services = {
{
job = "police",
name = "Police",
icon = "https://cdn-icons-png.flaticon.com/512/7211/7211100.png",
canCall = true, -- if true, players can call the company
canMessage = true, -- if true, players can message the company
bossRanks = {"boss", "lieutenant"}, -- ranks that can manage the company
location = {
name = "Mission Row",
coords = {
x = 428.9,
y = -984.5,
}
}
-- customIcon = "IoShield", -- if you want to use a custom icon for the company, set it here: https://react-icons.github.io/react-icons/icons?name=io5
-- onCustomIconClick = function()
-- print("Clicked")
-- end
},
{
job = "ambulance",
name = "Ambulance",
icon = "https://cdn-icons-png.flaticon.com/128/1032/1032989.png",
canCall = true, -- if true, players can call the company
canMessage = true, -- if true, players can message the company
bossRanks = {"boss", "doctor"}, -- ranks that can manage the company
location = {
name = "Pillbox",
coords = {
x = 304.2,
y = -587.0
}
}
},
{
job = "mechanic",
name = "Mechanic",
icon = "https://cdn-icons-png.flaticon.com/128/10281/10281554.png",
canCall = true, -- if true, players can call the company
canMessage = true, -- if true, players can message the company
bossRanks = {"boss", "worker"}, -- ranks that can manage the company
location = {
name = "LS Customs",
coords = {
x = -336.6,
y = -134.3
}
}
},
{
job = "taxi",
name = "Taxi",
icon = "https://cdn-icons-png.flaticon.com/128/433/433449.png",
canCall = true, -- if true, players can call the company
canMessage = true, -- if true, players can message the company
bossRanks = {"boss", "driver"}, -- ranks that can manage the company
location = {
name = "Taxi HQ",
coords = {
x =984.2,
y = -219.0
}
}
},
}
Config.Companies.Contacts = { -- not needed if you use the services app, this will add the contact to the contacts app
-- ["police"] = {
-- name = "Police",
-- photo = "https://cdn-icons-png.flaticon.com/512/7211/7211100.png"
-- },
}
Config.Companies.Management = {
Enabled = true, -- if true, employees & the boss can manage the company
Duty = true, -- if true, employees can go on/off duty
-- Boss actions
Deposit = true, -- if true, the boss can deposit money into the company
Withdraw = true, -- if true, the boss can withdraw money from the company
Hire = true, -- if true, the boss can hire employees
Fire = true, -- if true, the boss can fire employees
Promote = true, -- if true, the boss can promote employees
}
Config.CustomApps = {} -- https://docs.lbscripts.com/phone/custom-apps/
Config.Valet = {}
Config.Valet.Enabled = true -- allow players to get their vehicles from the phone
Config.Valet.Price = 100 -- price to get your vehicle
Config.Valet.Model = `S_M_Y_XMech_01`
Config.Valet.Drive = true -- should a ped bring the car, or should it just spawn in front of the player?
Config.Valet.DisableDamages = false -- disable vehicle damages (engine & body health) on esx
Config.Valet.FixTakeOut = false -- repair the vehicle after taking it out?
Config.HouseScript = "auto" --[[
The housing script you use on your server
Supported:
* loaf_housing - https://store.loaf-scripts.com/package/4310850
* qb-houses - https://github.com/qbcore-framework/qb-houses
* qs-housing - https://buy.quasar-store.com/package/5677308
--[[ VOICE OPTIONS ]] --
Config.Voice = {}
Config.Voice.CallEffects = false -- enable call effects while on speaker mode? (NOTE: This may create sound-issues if you have too many submixes registered in your server)
Config.Voice.System = "auto"
--[[
Supported voice systems:
* pma: pma-voice - HIGHLY RECOMMENDED
* mumble: mumble-voip - Not recommended, update to pma-voice
* salty: saltychat - Not recommended, change to pma-voice
* toko: tokovoip - Not recommended, change to pma-voice
Config.Voice.HearNearby = true --[[
Only works with pma-voice
If true, players will be heard on instapic live if they are nearby
If false, only the person who is live will be heard
If true, allow nearby players to listen to phone calls if speaker is enabled
If false, only the people in the call will be able to hear each other
This feature is a work in progress and may not work as intended. It may have an impact on performance.
Config.Voice.RecordNearby = true --[[
Should video recordings include nearby players?
--[[ PHONE OPTIONS ]] --
Config.Locations = { -- Locations that'll appear in the maps app.
{
position = vector2(428.9, -984.5),
name = "LSPD",
description = "Los Santos Police Department",
icon = "https://cdn-icons-png.flaticon.com/512/7211/7211100.png",
},
{
position = vector2(304.2, -587.0),
name = "Pillbox",
description = "Pillbox Medical Hospital",
icon = "https://cdn-icons-png.flaticon.com/128/1032/1032989.png",
},
}
Config.Locales = { -- languages that the player can choose from when setting up a phone
{
locale = "en",
name = "English"
},
{
locale = "de",
name = "Deutsch"
},
{
locale = "fr",
name = "Français"
},
{
locale = "es",
name = "Español"
},
{
locale = "nl",
name = "Nederlands"
},
{
locale = "dk",
name = "Dansk"
},
{
locale = "no",
name = "Norsk"
},
{
locale = "th",
name = "ไทย"
},
{
locale = "ar",
name = "عربي"
},
{
locale = "ru",
name = "Русский"
},
{
locale = "cs",
name = "Czech"
},
{
locale = "sv",
name = "Svenska"
},
{
locale = "pl",
name = "Polski"
},
{
locale = "hu",
name = "Magyar"
},
{
locale = "tr",
name = "Türkçe"
},
{
locale = "pt-br",
name = "Português (Brasil)"
},
{
locale = "pt-pt",
name = "Português"
},
{
locale = "it",
name = "Italiano"
},
{
locale = "ua",
name = "Українська"
}
}
Config.DefaultLocale = "en"
Config.DateLocale = "en-US" -- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
Config.FrameColor = "#39334d" -- This is the color of the phone frame. Default (#39334d) is SILVER.
Config.AllowFrameColorChange = true -- Allow players to change the color of their phone frame?
Config.PhoneNumber = {}
Config.PhoneNumber.Format = "({3}) {3}-{4}" -- Don't touch unless you know what you're doing. IMPORTANT: The sum of the numbers needs to be equal to the phone number length + prefix length
Config.PhoneNumber.Length = 7 -- This is the length of the phone number WITHOUT the prefix.
Config.PhoneNumber.Prefixes = { -- These are the first numbers of the phone number, usually the area code. They all need to be the same length
"205",
"907",
"480",
"520",
"602"
}
Config.Battery = {} -- WITH THESE SETTINGS, A FULL CHARGE WILL LAST AROUND 2 HOURS.
Config.Battery.Enabled = false -- Enable battery on the phone, you'll need to use the exports to charge it.
Config.Battery.ChargeInterval = { 5, 10 } -- How much battery
Config.Battery.DischargeInterval = { 50, 60 } -- How many seconds for each percent to be removed from the battery
Config.Battery.DischargeWhenInactiveInterval = { 80, 120 } -- How many seconds for each percent to be removed from the battery when the phone is inactive
Config.Battery.DischargeWhenInactive = true -- Should the phone remove battery when the phone is closed?
Config.CurrencyFormat = "$%s" -- ($100) Choose the formatting of the currency. %s will be replaced with the amount.
Config.MaxTransferAmount = 1000000 -- The maximum amount of money that can be transferred at once via wallet / messages.
Config.TransferLimits = {}
Config.TransferLimits.Daily = false -- The maximum amount of money that can be transferred in a day. Set to false for unlimited.
Config.TransferLimits.Weekly = false -- The maximum amount of money that can be transferred in a week. Set to false for unlimited.
Config.EnableMessagePay = true -- Allow players to pay other players via messages?
Config.EnableVoiceMessages = true -- Allow players to send voice messages?
Config.CityName = "Los Santos" -- The name that's being used in the weather app etc.
Config.RealTime = true -- if true, the time will use real life time depending on where the user lives, if false, the time will be the ingame time.
Config.CustomTime = false -- NOTE: disable Config.RealTime if using this. you can set this to a function that returns custom time, as a table: { hour = 0-24, minute = 0-60 }
Config.EmailDomain = "lbphone.com"
Config.AutoCreateEmail = false -- should the phone automatically create an email for the player when they set up the phone?
Config.DeleteMail = true -- allow players to delete mails in the mail app?
Config.DeleteMessages = true -- allow players to delete messages in the messages app?
Config.SyncFlash = true -- should flashlights be synced across all players? May have an impact on performance
Config.EndLiveClose = false -- should InstaPic live end when you close the phone?
Config.AllowExternal = { -- allow people to upload external images? (note: this means they can upload nsfw / gore etc)
Gallery = false, -- allow importing external links to the gallery?
Birdy = false, -- set to true to enable external images on that specific app, set to false to disable it.
InstaPic = false,
Spark = false,
Trendy = false,
Pages = false,
MarketPlace = false,
Mail = false,
Messages = false,
Other = false, -- other apps that don't have a specific setting (ex: setting a profile picture for a contact, backgrounds for the phone etc)
}
-- Blacklisted domains for external images. You will not be able to upload from these domains.
Config.ExternalBlacklistedDomains = {
"imgur.com",
"discord.com",
"discordapp.com",
}
-- Whitelisted domains for external images. If this is not empty/nil/false, you will only be able to upload images from these domains.
Config.ExternalWhitelistedDomains = {
-- "fivemanage.com"
}
-- Set to false/empty to disable
Config.UploadWhitelistedDomains = { -- domains that are allowed to upload images to the phone (prevent using devtools to upload images)
"fivemanage.com",
"cfx.re" -- lb-upload
}
Config.WordBlacklist = {}
Config.WordBlacklist.Enabled = false
Config.WordBlacklist.Apps = { -- apps that should use the word blacklist (if Config.WordBlacklist.Enabled is true)
Birdy = true,
InstaPic = true,
Trendy = true,
Spark = true,
Messages = true,
Pages = true,
MarketPlace = true,
DarkChat = true,
Mail = true,
Other = true,
}
Config.WordBlacklist.Words = {
-- array of blacklisted words, e.g. "badword", "anotherbadword"
}
Config.AutoFollow = {}
Config.AutoFollow.Enabled = false
Config.AutoFollow.Birdy = {}
Config.AutoFollow.Birdy.Enabled = true
Config.AutoFollow.Birdy.Accounts = {} -- array of usernames to automatically follow when creating an account. e.g. "username", "anotherusername"
Config.AutoFollow.InstaPic = {}
Config.AutoFollow.InstaPic.Enabled = true
Config.AutoFollow.InstaPic.Accounts = {} -- array of usernames to automatically follow when creating an account. e.g. "username", "anotherusername"
Config.AutoFollow.Trendy = {}
Config.AutoFollow.Trendy.Enabled = true
Config.AutoFollow.Trendy.Accounts = {} -- array of usernames to automatically follow when creating an account. e.g. "username", "anotherusername"
Config.AutoBackup = true -- should the phone automatically create a backup when you get a new phone?
Config.Post = {} -- What apps should send posts to discord? You can set your webhooks in server/webhooks.lua
Config.Post.Birdy = true -- Announce new posts on Birdy?
Config.Post.InstaPic = true -- Anmnounce new posts on InstaPic?
Config.Post.Accounts = {
Birdy = {
Username = "Birdy",
Avatar = "https://loaf-scripts.com/fivem/lb-phone/icons/Birdy.png"
},
InstaPic = {
Username = "InstaPic",
Avatar = "https://loaf-scripts.com/fivem/lb-phone/icons/InstaPic.png"
}
}
Config.BirdyTrending = {}
Config.BirdyTrending.Enabled = true -- show trending hashtags?
Config.BirdyTrending.Reset = 7 * 24 -- How often should trending hashtags be reset on birdy? (in hours)
Config.BirdyNotifications = false -- should everyone get a notification when someone posts?
Config.PromoteBirdy = {}
Config.PromoteBirdy.Enabled = true -- should you be able to promote post?
Config.PromoteBirdy.Cost = 2500 -- how much does it cost to promote a post?
Config.PromoteBirdy.Views = 100 -- how many views does a promoted post get?
Config.TrendyTTS = {
{"English (US) - Female", "en_us_001"},
{"English (US) - Male 1", "en_us_006"},
{"English (US) - Male 2", "en_us_007"},
{"English (US) - Male 3", "en_us_009"},
{"English (US) - Male 4", "en_us_010"},
{"English (UK) - Male 1", "en_uk_001"},
{"English (UK) - Male 2", "en_uk_003"},
{"English (AU) - Female", "en_au_001"},
{"English (AU) - Male", "en_au_002"},
{"French - Male 1", "fr_001"},
{"French - Male 2", "fr_002"},
{"German - Female", "de_001"},
{"German - Male", "de_002"},
{"Spanish - Male", "es_002"},
{"Spanish (MX) - Male", "es_mx_002"},
{"Portuguese (BR) - Female 2", "br_003"},
{"Portuguese (BR) - Female 3", "br_004"},
{"Portuguese (BR) - Male", "br_005"},
{"Indonesian - Female", "id_001"},
{"Japanese - Female 1", "jp_001"},
{"Japanese - Female 2", "jp_003"},
{"Japanese - Female 3", "jp_005"},
{"Japanese - Male", "jp_006"},
{"Korean - Male 1", "kr_002"},
{"Korean - Male 2", "kr_004"},
{"Korean - Female", "kr_003"},
{"Ghostface (Scream)", "en_us_ghostface"},
{"Chewbacca (Star Wars)", "en_us_chewbacca"},
{"C3PO (Star Wars)", "en_us_c3po"},
{"Stitch (Lilo & Stitch)", "en_us_stitch"},
{"Stormtrooper (Star Wars)", "en_us_stormtrooper"},
{"Rocket (Guardians of the Galaxy)", "en_us_rocket"},
{"Singing - Alto", "en_female_f08_salut_damour"},
{"Singing - Tenor", "en_male_m03_lobby"},
{"Singing - Sunshine Soon", "en_male_m03_sunshine_soon"},
{"Singing - Warmy Breeze", "en_female_f08_warmy_breeze"},
{"Singing - Glorious", "en_female_ht_f08_glorious"},
{"Singing - It Goes Up", "en_male_sing_funny_it_goes_up"},
{"Singing - Chipmunk", "en_male_m2_xhxs_m03_silly"},
{"Singing - Dramatic", "en_female_ht_f08_wonderful_world"}
}
-- ICE Servers for WebRTC (ig live, live video). If you don't know what you're doing, leave this as it is.
-- see https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection
-- Config.RTCConfig = {
-- iceServers = {
-- { urls = "stun:stun.l.google.com:19302" },
-- }
-- }
Config.Crypto = {}
Config.Crypto.Enabled = true
Config.Crypto.Coins = {"bitcoin","ethereum","tether","binancecoin","usd-coin","ripple","binance-usd","cardano","dogecoin","solana","shiba-inu","polkadot","litecoin","bitcoin-cash"}
Config.Crypto.Currency = "usd" -- currency to use for crypto prices. https://api.coingecko.com/api/v3/simple/supported_vs_currencies
Config.Crypto.Refresh = 5 * 60 * 1000 -- how often should the crypto prices be refreshed (client cache)? (Default 5 minutes)
Config.Crypto.QBit = true -- support QBit? (requires qb-crypto & qb-core)
Config = {} -- 配置表
Config.Debug = false -- 设置为 true 以启用调试模式
Config.DatabaseChecker = {}
Config.DatabaseChecker.Enabled = true -- 如果为 true,手机将检查数据库是否有问题,并在可能的情况下修复它们
Config.DatabaseChecker.AutoFix = true -- 自动修复
--[] --
Config.Framework = "auto" -- 支持的框架:
--[[
支持的框架:
* auto: 自动检测框架(仅适用于下列框架)
* esx: es_extended, https://github.com/esx-framework/esx-legacy
* qb: qb-core, https://github.com/qbcore-framework/qb-core
* ox: ox_core, https://github.com/overextended/ox_core
* vrp2: vrp 2.0(仅限官方 vRP 2.0,不是定制版本)
* standalone: 无框架,注意特定框架的应用将无法工作,除非您实现这些功能
]]
Config.CustomFramework = false -- 如果设为 true 并使用独立模式,您将能够使用特定框架的应用
Config.QBMailEvent = true -- 如果您希望该脚本侦听 qb 邮件事件,请启用此选项
Config.QBOldJobMethod = false -- 使用旧的方法检查 qb-core 中的工作?这比较慢,仅在使用旧版 qb-core 时需要
Config.Item = {}
Config.Item.Require = true -- 使用手机需要物品
Config.Item.Name = "phone" -- 手机物品的名称
Config.Item.Unique = false -- 每部手机是否应该是唯一的?https://docs.lbscripts.com/phone/configuration/#unique-phones
Config.Item.Inventory = "auto" --[[
您使用的库存,禁用时请忽略。支持:
* auto: 自动检测库存(仅适用于下列库存)
* ox_inventory - https://github.com/overextended/ox_inventory
* qb-inventory - https://github.com/qbcore-framework/qb-inventory
* lj-inventory - https://github.com/loljoshie/lj-inventory
* core_inventory - https://www.c8re.store/package/5121548
* mf-inventory - https://modit.store/products/mf-inventory?variant=39985142268087
* qs-inventory - https://buy.quasar-store.com/package/4770732
* codem-inventory - https://codem.tebex.io/package/5900973
]]
Config.ServerSideSpawn = false -- 实体应该在服务器上生成吗?(手机道具,车辆)
Config.PhoneModel = `lb_phone_prop` -- 手机的道具,如果您想使用自定义手机模型,可以在这里更改
Config.PhoneRotation = vector3(0.0, 0.0, 180.0) -- 手机附加到玩家时的旋转
Config.PhoneOffset = vector3(0.0, -0.005, 0.0) -- 手机附加到玩家时的偏移
Config.DynamicIsland = true -- 如果启用,手机将有一个受 iPhone 14 Pro 启发的动态岛
Config.SetupScreen = true -- 如果启用,玩家第一次使用手机时,将显示设置屏幕
Config.AutoDeleteNotifications = false -- 超过 X 小时的通知将被删除。设置为 false 可禁用该功能。如果设置为 true,将删除 1 周前的通知
Config.MaxNotifications = 100 -- 玩家可以拥有的最大通知数量。如果超过此数量,最旧的通知将被删除。设置为 false 可禁用
Config.DisabledNotifications = { -- 应用不应发送通知的数组,请注意应使用应用标识符,见 config.json
-- "DarkChat",
}
Config.WhitelistApps = {
--= {"police", "ambulance"}
}
Config.BlacklistApps = {
--= {"police"}
}
Config.ChangePassword = {
["Trendy"] = true, -- 可更改密码的应用
["InstaPic"] = true,
["Birdy"] = true,
["DarkChat"] = true,
["Mail"] = true,
}
Config.DeleteAccount = {
["Trendy"] = false,
["InstaPic"] = false,
["Birdy"] = false,
["DarkChat"] = false,
["Mail"] = false,
["Spark"] = false,
}
Config.Companies = {}
Config.Companies.Enabled = true -- 允许玩家拨打公司的电话?
Config.Companies.MessageOffline = true -- 如果为 true,玩家即使在公司没有人在线时也可以给公司发送消息
Config.Companies.DefaultCallsDisabled = false -- 默认情况下,接收公司电话是否禁用?
Config.Companies.AllowAnonymous = false -- 允许玩家拨打"隐藏来电显示"的公司电话?
Config.Companies.SeeEmployees = "everyone" -- 谁应该能看到员工?将看到员工的姓名、在线状态和电话号码。选项为:"everyone"(所有人)、"employees"(员工)或 "none"(无)
Config.Companies.DeleteConversations = true -- 允许员工删除会话?
Config.Companies.Services = { -- 公司服务详情
{
job = "police", -- 职位
name = "Police", -- 公司名称
icon = "https://cdn-icons-png.flaticon.com/512/7211/7211100.png", -- 图标链接
canCall = true, -- 是否允许玩家拨打公司电话
canMessage = true, -- 是否允许玩家给公司发送消息
bossRanks = {"boss", "lieutenant"}, -- 可管理公司的职务
location = { -- 公司位置
name = "Mission Row",
coords = {
x = 428.9,
y = -984.5,
}
}
-- customIcon = "IoShield", -- 如果您想为公司使用自定义图标,请在此处设置:https://react-icons.github.io/react-icons/icons?name=io5
-- onCustomIconClick = function() -- 自定义图标点击事件
-- print("Clicked") -- 打印点击信息
-- end
},
{
job = "ambulance",
name = "Ambulance",
icon = "https://cdn-icons-png.flaticon.com/128/1032/1032989.png",
canCall = true,
canMessage = true,
bossRanks = {"boss", "doctor"},
location = {
name = "Pillbox",
coords = {
x = 304.2,
y = -587.0
}
}
},
{
job = "mechanic",
name = "Mechanic",
icon = "https://cdn-icons-png.flaticon.com/128/10281/10281554.png",
canCall = true,
canMessage = true,
bossRanks = {"boss", "worker"},
location = {
name = "LS Customs",
coords = {
x = -336.6,
y = -134.3
}
}
},
{
job = "taxi",
name = "Taxi",
icon = "https://cdn-icons-png.flaticon.com/128/433/433449.png",
canCall = true,
canMessage = true,
bossRanks = {"boss", "driver"},
location = {
name = "Taxi HQ",
coords = {
x = 984.2,
y = -219.0
}
}
},
}
Config.Companies.Contacts = { -- 如果使用服务应用则不需要,这将把联系人添加到联系人应用
--= {
-- name = "Police",
-- photo = "https://cdn-icons-png.flaticon.com/512/7211/7211100.png"
-- },
}
Config.Companies.Management = {
Enabled = true, -- 如果为 true,员工和老板可以管理公司
Duty = true, -- 如果为 true,员工可以上岗/下岗
-- 老板操作
Deposit = true, -- 如果为 true,老板可以将钱存入公司
Withdraw = true, -- 如果为 true,老板可以从公司提取钱
Hire = true, -- 如果为 true,老板可以聘用员工
Fire = true, -- 如果为 true,老板可以解雇员工
Promote = true, -- 如果为 true,老板可以提升员工
}
Config.CustomApps = {} -- https://docs.lbscripts.com/phone/custom-apps/
Config.Valet = {}
Config.Valet.Enabled = true -- 允许玩家通过手机获取车辆
Config.Valet.Price = 100 -- 获取车辆的价格
Config.Valet.Model = `S_M_Y_XMech_01` -- 车辆模型
Config.Valet.Drive = true -- 应该由 NPC 驾驶车辆,还是应该仅在玩家面前生成?
Config.Valet.DisableDamages = false -- 禁用 esx 中的车辆损伤(引擎和车身健康)
Config.Valet.FixTakeOut = false -- 取出车辆后修复车辆?
Config.HouseScript = "auto" --[[
您在服务器上使用的住房脚本
支持:
* loaf_housing - https://store.loaf-scripts.com/package/4310850
* qb-houses - https://github.com/qbcore-framework/qb-houses
* qs-housing - https://buy.quasar-store.com/package/5677308
--[] --
]]
Config.Voice = {}
Config.Voice.CallEffects = false -- 启用免提模式下的通话效果?(注意:如果服务器中注册了过多子混音,可能会产生声音问题)
Config.Voice.System = "auto" --[[
支持的语音系统:
* pma: pma-voice - 强烈推荐
* mumble: mumble-voip - 不推荐,更新至 pma-voice
* salty: saltychat - 不推荐,更新至 pma-voice
* toko: tokovoip - 不推荐,更新至 pma-voice
]]
Config.Voice.HearNearby = true --[[
仅适用于 pma-voice
如果为 true,附近的玩家在 instapic 直播时将被听到
如果为 false,只有正在直播的人员会被听到
如果为 true,允许附近的玩家在启用扬声器时收听电话
如果为 false,只有通话中的人员可以相互听到
此功能仍在开发中,可能无法按预期工作。可能会影响性能。
]]
Config.Voice.RecordNearby = true --[[
视频录制是否应包括附近的玩家?
]]
--[] --
Config.Locations = { -- 将出现在地图应用中的地点
{
position = vector2(428.9, -984.5), -- 位置坐标
name = "LSPD", -- 地点名称
description = "Los Santos Police Department", -- 地点描述
icon = "https://cdn-icons-png.flaticon.com/512/7211/7211100.png", -- 图标链接
},
{
position = vector2(304.2, -587.0),
name = "Pillbox",
description = "Pillbox Medical Hospital",
icon = "https://cdn-icons-png.flaticon.com/128/1032/1032989.png",
},
}
Config.Locales = { -- 玩家在设置手机时可选择的语言
{
locale = "en",
name = "English" -- 英语
},
{
locale = "de",
name = "Deutsch" -- 德语
},
{
locale = "fr",
name = "Français" -- 法语
},
{
locale = "es",
name = "Español" -- 西班牙语
},
{
locale = "nl",
name = "Nederlands" -- 荷兰语
},
{
locale = "dk",
name = "Dansk" -- 丹麦语
},
{
locale = "no",
name = "Norsk" -- 挪威语
},
{
locale = "th",
name = "ไทย" -- 泰语
},
{
locale = "ar",
name = "عربي" -- 阿拉伯语
},
{
locale = "ru",
name = "Русский" -- 俄语
},
{
locale = "cs",
name = "Czech" -- 捷克语
},
{
locale = "sv",
name = "Svenska" -- 瑞典语
},
{
locale = "pl",
name = "Polski" -- 波兰语
},
{
locale = "hu",
name = "Magyar" -- 匈牙利语
},
{
locale = "tr",
name = "Türkçe" -- 土耳其语
},
{
locale = "pt-br",
name = "Português (Brasil)" -- 葡萄牙语(巴西)
},
{
locale = "pt-pt",
name = "Português" -- 葡萄牙语
},
{
locale = "it",
name = "Italiano" -- 意大利语
},
{
locale = "ua",
name = "Українська" -- 乌克兰语
}
}
Config.DefaultLocale = "en" -- 默认语言
Config.DateLocale = "en-US" -- 日期语言格式 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
Config.FrameColor = "#39334d" -- 手机框架的颜色。默认(#39334d)为银色。
Config.AllowFrameColorChange = true -- 允许玩家更换手机框架颜色?
Config.PhoneNumber = {}
Config.PhoneNumber.Format = "({3}) {3}-{4}" -- 不要修改,除非您知道自己在做什么。重要:数字的总和需要等于电话号码长度+前缀长度
Config.PhoneNumber.Length = 7 -- 电话号码的长度(不包括前缀)
Config.PhoneNumber.Prefixes = { -- 电话号码的前缀(通常是区号)
"205",
"907",
"480",
"520",
"602"
}
Config.Battery = {}
Config.Battery.Enabled = false -- 启用手机电池,您需要使用导出功能为其充电。
Config.Battery.ChargeInterval = { 5, 10 } -- 每多少时间充电
Config.Battery.DischargeInterval = { 50, 60 } -- 每减少 1% 电池所需的秒数
Config.Battery.DischargeWhenInactiveInterval = { 80, 120 } -- 手机非活动时每减少 1% 电池所需的秒数
Config.Battery.DischargeWhenInactive = true -- 手机关闭时是否减少电池电量?
Config.CurrencyFormat = "$%s" -- 货币的格式化方式(例如,$100)。%s 将替换为金额。
Config.MaxTransferAmount = 1000000 -- 单次通过钱包/信息转账的最大金额。
Config.TransferLimits = {}
Config.TransferLimits.Daily = false -- 每天可以转账的最大金额。设置为 false 表示无限制。
Config.TransferLimits.Weekly = false -- 每周可以转账的最大金额。设置为 false 表示无限制。
Config.EnableMessagePay = true -- 允许玩家通过信息支付给其他玩家?
Config.EnableVoiceMessages = true -- 允许玩家发送语音信息?
Config.CityName = "Los Santos" -- 用于天气应用等的名称。
Config.RealTime = true -- 如果为 true,时间将根据用户居住地使用现实时间;如果为 false,时间将是游戏内时间。
Config.CustomTime = false -- 注意:如果使用此功能,请禁用 Config.RealTime。您可以将其设置为返回自定义时间的函数,格式为:{ hour = 0-24, minute = 0-60 }
Config.EmailDomain = "lbphone.com" -- 电子邮件域名
Config.AutoCreateEmail = false -- 当玩家设置手机时,是否自动创建电子邮件?
Config.DeleteMail = true -- 允许玩家在邮件应用中删除邮件?
Config.DeleteMessages = true -- 允许玩家在信息应用中删除信息?
Config.SyncFlash = true -- 手电筒是否应在所有玩家之间同步?可能会影响性能
Config.EndLiveClose = false -- 关闭手机时是否应结束 InstaPic 直播?
Config.AllowExternal = { -- 允许用户上传外部图像?(注意:这意味着他们可以上传不雅/暴力等内容)
Gallery = false, -- 允许将外部链接导入库?
Birdy = false, -- 设置为 true 以启用该特定应用上的外部图像,设置为 false 以禁用它。
InstaPic = false,
Spark = false,
Trendy = false,
Pages = false,
MarketPlace = false,
Mail = false,
Messages = false,
Other = false, -- 其他没有特定设置的应用(例如:为联系人设置头像,手机背景等)
}
-- 不受信任的外部图像域名。您将无法从这些域名上传。
Config.ExternalBlacklistedDomains = {
"imgur.com",
"discord.com",
"discordapp.com",
}
-- 受信任的外部图像域名。如果不为空/无/false,您将只能够从这些域名上传图像。
Config.ExternalWhitelistedDomains = {
-- "fivemanage.com"
}
-- 设置为 false/空以禁用
Config.UploadWhitelistedDomains = { -- 允许将图像上传到手机的域(防止使用开发工具上传图像)
"fivemanage.com",
"cfx.re" -- lb-upload
}
Config.WordBlacklist = {} -- 关键字黑名单配置
Config.WordBlacklist.Enabled = false -- 启用关键字黑名单
Config.WordBlacklist.Apps = { -- 应用程序使用关键字黑名单(如果 Config.WordBlacklist.Enabled 为 true)
Birdy = true,
InstaPic = true,
Trendy = true,
Spark = true,
Messages = true,
Pages = true,
MarketPlace = true,
DarkChat = true,
Mail = true,
Other = true,
}
Config.WordBlacklist.Words = {
-- 黑名单词数组,例如 "badword", "anotherbadword"
}
Config.AutoFollow = {}
Config.AutoFollow.Enabled = false -- 自动跟随设置
Config.AutoFollow.Birdy = {}
Config.AutoFollow.Birdy.Enabled = true
Config.AutoFollow.Birdy.Accounts = {} -- 创建账户时自动跟随的用户名数组,例如 "username", "anotherusername"
Config.AutoFollow.InstaPic = {}
Config.AutoFollow.InstaPic.Enabled = true
Config.AutoFollow.InstaPic.Accounts = {} -- 创建账户时自动跟随的用户名数组,例如 "username", "anotherusername"
Config.AutoFollow.Trendy = {}
Config.AutoFollow.Trendy.Enabled = true
Config.AutoFollow.Trendy.Accounts = {} -- 创建账户时自动跟随的用户名数组,例如 "username", "anotherusername"
Config.AutoBackup = true -- 在获取新手机时,手机是否应自动创建备份?
Config.Post = {} -- 应用程序应该将发布发送到 discord?您可以在 server/webhooks.lua 中设置您的网络钩子
Config.Post.Birdy = true -- 是否在 Birdy 上宣布新发布?
Config.Post.InstaPic = true -- 是否在 InstaPic 上宣布新发布?
Config.Post.Accounts = {
Birdy = {
Username = "Birdy",
Avatar = "https://loaf-scripts.com/fivem/lb-phone/icons/Birdy.png"
},
InstaPic = {
Username = "InstaPic",
Avatar = "https://loaf-scripts.com/fivem/lb-phone/icons/InstaPic.png"
}
}
Config.BirdyTrending = {}
Config.BirdyTrending.Enabled = true -- 是否显示热门标签?
Config.BirdyTrending.Reset = 7 * 24 -- Birdy 上的热门标签每多少小时重置一次?
Config.BirdyNotifications = false -- 是否应该在有人发布时通知所有人?
Config.PromoteBirdy = {}
Config.PromoteBirdy.Enabled = true -- 是否能够推广文章?
Config.PromoteBirdy.Cost = 2500 -- 推广文章的费用
Config.PromoteBirdy.Views = 100 -- 推广的文章获得多少观看次数?
Config.TrendyTTS = { -- 文字转语音选项
{"English (US) - Female", "en_us_001"},
{"English (US) - Male 1", "en_us_006"},
{"English (US) - Male 2", "en_us_007"},
{"English (US) - Male 3", "en_us_009"},
{"English (US) - Male 4", "en_us_010"},
{"English (UK) - Male 1", "en_uk_001"},
{"English (UK) - Male 2", "en_uk_003"},
{"English (AU) - Female", "en_au_001"},
{"English (AU) - Male", "en_au_002"},
{"French - Male 1", "fr_001"},
{"French - Male 2", "fr_002"},
{"German - Female", "de_001"},
{"German - Male", "de_002"},
{"Spanish - Male", "es_002"},
{"Spanish (MX) - Male", "es_mx_002"},
{"Portuguese (BR) - Female 2", "br_003"},
{"Portuguese (BR) - Female 3", "br_004"},
{"Portuguese (BR) - Male", "br_005"},
{"Indonesian - Female", "id_001"},
{"Japanese - Female 1", "jp_001"},
{"Japanese - Female 2", "jp_003"},
{"Japanese - Female 3", "jp_005"},
{"Japanese - Male", "jp_006"},
{"Korean - Male 1", "kr_002"},
{"Korean - Male 2", "kr_004"},
{"Korean - Female", "kr_003"},
{"Ghostface (Scream)", "en_us_ghostface"},
{"Chewbacca (Star Wars)", "en_us_chewbacca"},
{"C3PO (Star Wars)", "en_us_c3po"},
{"Stitch (Lilo & Stitch)", "en_us_stitch"},
{"Stormtrooper (Star Wars)", "en_us_stormtrooper"},
{"Rocket (Guardians of the Galaxy)", "en_us_rocket"},
{"Singing - Alto", "en_female_f08_salut_damour"},
{"Singing - Tenor", "en_male_m03_lobby"},
{"Singing - Sunshine Soon", "en_male_m03_sunshine_soon"},
{"Singing - Warmy Breeze", "en_female_f08_warmy_breeze"},
{"Singing - Glorious", "en_female_ht_f08_glorious"},
{"Singing - It Goes Up", "en_male_sing_funny_it_goes_up"},
{"Singing - Chipmunk", "en_male_m2_xhxs_m03_silly"},
{"Singing - Dramatic", "en_female_ht_f08_wonderful_world"}
}
-- ICE 服务器用于 WebRTC(实时直播视频)。如果您不知道自己在做什么,请保持此配置不变。
-- https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection
-- Config.RTCConfig = {
-- iceServers = {
-- { urls = "stun:stun.l.google.com:19302" },
-- }
-- }
Config.Crypto = {}
Config.Crypto.Enabled = true -- 启用加密货币功能
Config.Crypto.Coins = {"bitcoin","ethereum","tether","binancecoin","usd-coin","ripple","binance-usd","cardano","dogecoin","solana","shiba-inu","polkadot","litecoin","bitcoin-cash"}
Config.Crypto.Currency = "usd" -- 用于加密价格的货币。https://api.coingecko.com/api/v3/simple/supported_vs_currencies
Config.Crypto.Refresh = 5 * 60 * 1000 -- 加密价格的刷新频率(客户端缓存)?(默认 5 分钟)
Config.Crypto.QBit = true -- 是否支持 QBit?(需要 qb-crypto 和 qb-core)
这个 Lua 脚本配置段的翻译和注释覆盖了整个配置项。根据具体需要,您可以将这些配置添加到相应的 `server.lua` 或 `client.lua` 文件中。一般而言,框架相关的配置应放在 `server.lua` 中,而涉及玩家操作或客户端显示的配置则应放在 `client.lua` 中。
页:
[1]