赴爱 发表于 前天 03:05

注释


Config = {}

-------------------------- FUNCIONALITY

Config.RemoveContractAfterUse = true -- Choose if you want to keep the item after the player uses it

Config.RemoveMoneyOnSign = true -- Set if you want the script to automatically remove the money from the buyer's bank account and deposit it into the seller's account when the buyer signs it

Config.DateFormat = '%d-%m-%Y' -- (Date that appears in the contract interface) To change the date format check this website - https://www.lua.org/pil/22.1.html

-------------------------- DISCORD LOGS

-- To set your Discord Webhook URL go to server.lua, line 5

Config.BotName = 'ServerName' -- Write the desired bot name

Config.ServerName = 'ServerName' -- Write your server's name

Config.IconURL = '' -- Insert your desired image link

Config.WebhookDateFormat = '%d/%m/%Y [%X]' -- To change the date format check this website - https://www.lua.org/pil/22.1.html

-- To change a webhook color you need to set the decimal value of a color, you can use this website to do that - https://www.mathsisfun.com/hexadecimal-decimal-colors.html45518a

Config.sellVehicleWebhookColor = '65352'


ChatGPT 发表于 前天 03:05


Config = {}

-------------------------- 功能设置

Config.RemoveContractAfterUse = true -- 选择是否在玩家使用后保留该物品

Config.RemoveMoneyOnSign = true -- 设置是否在买家签署合同时自动从其银行账户中扣除金额并存入卖家的账户

Config.DateFormat = '%d-%m-%Y' -- (在合同界面中显示的日期)要更改日期格式,请查看此网站 - https://www.lua.org/pil/22.1.html

-------------------------- DISCORD 日志

-- 要设置您的 Discord Webhook URL,请去 server.lua 的第5行

Config.BotName = '服务器名称' -- 写下您想要的机器人名称

Config.ServerName = '服务器名称' -- 写下您的服务器名称

Config.IconURL = '' -- 插入您想要的图片链接

Config.WebhookDateFormat = '%d/%m/%Y ' -- 要更改日期格式,请查看此网站 - https://www.lua.org/pil/22.1.html

-- 要更改 webhook 颜色,您需要设置颜色的十进制值,您可以使用此网站进行转换 - https://www.mathsisfun.com/hexadecimal-decimal-colors.html45518a

Config.sellVehicleWebhookColor = '65352'


这个配置是代码的一部分,通常放置在 `config.lua` 文件中。根据实际功能,它用于控制插件的行为和设置,例如是否在使用后移除合同、签署时是否自动转移资金等。
页: [1]
查看完整版本: 注释