翻译成中文,保留源代码
local function customclothes(manwear, womenwear, manringwear, womenringwear, unwearring)
if manwear then
-- your custom clothes script load clothes trigger like this TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreManOutfit)
end
if womenwear then
-- your custom clothes script load clothes trigger like this TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreGirlOutfit)
end
if manringwear then
-- your custom clothes script load clothes trigger like this TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreManRing)
end
if womenringwear then
-- your custom clothes script load clothes trigger like this TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreGirlRing)
end
if unwearring then
-- your custom clothes script load clothes trigger like this TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreRingOff)
end
end
UniqersMarriage.ItemUpdateType = "reload" -- reload or remove items update type if u select reload item will remove and will add
UniqersMarriage.IDCard = false -- if u use this item and if u want update this item write true if dont want write false
UniqersMarriage.IDCardName = "id_card" -- this item name
UniqersMarriage.DriverCard = false -- if u use this item and if u want update this item write true if dont want write false
UniqersMarriage.DriverCardName = "driver_license"-- this item name
UniqersMarriage.Temporary = false -- if u use this item and if u want update this item write true if dont want write false
UniqersMarriage.TemporaryName = "temporary"-- this item name
UniqersMarriage.LawyerPass = false -- if u use this item and if u want update this item write true if dont want write false
UniqersMarriage.LawyerPassName = "lawyerpass"-- this item name
UniqersMarriage.WeaponLicense = false -- if u use this item and if u want update this item write true if dont want write false
UniqersMarriage.WeaponLicenseName = "weaponlicense"-- this item name
UniqersMarriage.QBCoreManRing = {
outfitData = {
['accessory'] = {
item = 1,
texture = 0
},
}
}
UniqersMarriage.QBCoreGirlRing = {
outfitData = {
['accessory'] = {
item = 1,
texture = 0
},
}
}
UniqersMarriage.QBCoreRingOff = {
outfitData = {
['accessory'] = {
item = 0,
texture = 0
},
}
}
UniqersMarriage.ESXRingClothes = {
weddingsclothes = {
male = {
['chain_1'] = 1
},
female = {
['chain_1'] = 1
}
}
}
UniqersMarriage.ESXRingOff = {
['chain_1'] = 0
}
-- you can edit wedding dress girl and man
以下是您提供的代码的中文翻译,保留了源代码:
local function customclothes(manwear, womenwear, manringwear, womenringwear, unwearring)
if manwear then
-- 你的自定义服装脚本加载服装触发器如下 TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreManOutfit)
end
if womenwear then
-- 你的自定义服装脚本加载服装触发器如下 TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreGirlOutfit)
end
if manringwear then
-- 你的自定义服装脚本加载服装触发器如下 TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreManRing)
end
if womenringwear then
-- 你的自定义服装脚本加载服装触发器如下 TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreGirlRing)
end
if unwearring then
-- 你的自定义服装脚本加载服装触发器如下 TriggerEvent('qb-clothing:client:loadOutfit', UniqersMarriage.QBCoreRingOff)
end
end
UniqersMarriage.ItemUpdateType = "reload" -- 重新加载或移除物品更新类型,如果选择重新加载,物品将被移除并添加
UniqersMarriage.IDCard = false -- 如果使用此物品并希望更新此物品,写为 true;如果不想更新,写为 false
UniqersMarriage.IDCardName = "id_card" -- 此物品名称
UniqersMarriage.DriverCard = false -- 如果使用此物品并希望更新此物品,写为 true;如果不想更新,写为 false
UniqersMarriage.DriverCardName = "driver_license"-- 此物品名称
UniqersMarriage.Temporary = false -- 如果使用此物品并希望更新此物品,写为 true;如果不想更新,写为 false
UniqersMarriage.TemporaryName = "temporary"-- 此物品名称
UniqersMarriage.LawyerPass = false -- 如果使用此物品并希望更新此物品,写为 true;如果不想更新,写为 false
UniqersMarriage.LawyerPassName = "lawyerpass"-- 此物品名称
UniqersMarriage.WeaponLicense = false -- 如果使用此物品并希望更新此物品,写为 true;如果不想更新,写为 false
UniqersMarriage.WeaponLicenseName = "weaponlicense"-- 此物品名称
UniqersMarriage.QBCoreManRing = {
outfitData = {
['accessory'] = {
item = 1,
texture = 0
},
}
}
UniqersMarriage.QBCoreGirlRing = {
outfitData = {
['accessory'] = {
item = 1,
texture = 0
},
}
}
UniqersMarriage.QBCoreRingOff = {
outfitData = {
['accessory'] = {
item = 0,
texture = 0
},
}
}
UniqersMarriage.ESXRingClothes = {
weddingsclothes = {
male = {
['chain_1'] = 1
},
female = {
['chain_1'] = 1
}
}
}
UniqersMarriage.ESXRingOff = {
['chain_1'] = 0
}
-- 你可以编辑新娘和新郎的婚纱
这段代码主要用于处理自定义服装和配饰的加载,适用于FiveM的插件开发。
页:
[1]