搜索
开启左侧

汉化

[复制链接]
赴爱 发表于 前天 01:52 | 显示全部楼层 |阅读模式

Config = {}

-- [GENERAL]:
Config.EnableFootprints     = true
Config.PNearAnimalToEscape  = 40      -- if the distance between a player and the animal is less than this value, it will run away (not for native animals)

-- [HARVESTING]:
Config.HeadshotForPerfect = true      -- In order to receve the perfect item, you will need to get perfect in Config.WeaponDamages and also kill the animal with an headshot
--Config.TimeToHarvest      = 10000     -- number of milliseconds to complete harvesting
Config.CameraMovement     = false      -- if true camera animation when harvesting animals
Config.MinLeather         = 1         -- the minimum number of leather you can drop
Config.MaxLeather         = 1         -- the maximum number of leather you can drop
Config.CanDropMeat        = true      -- false if you don't want that animals can drop meat
Config.MeatItem           = "meat"    -- item name for meat
Config.MinMeat            = 1         -- the minimum number of leather you can drop
Config.MaxMeat            = 3         -- the maximum number of leather you can drop
Config.CanDropSpecial     = true      -- false if you don't want that animals can drop special items (see Config.Animals)
Config.SpecialProb        = 95        -- probability, example: the script generates a random number from 1 to 100, if the random number is higher (>) than this one it will drop (so 10% probability)

-- [BAIT]:
Config.EnableBait           = true
Config.BlipOnBaitAnimal     = true
--Config.BaitPlacingTime      = 15000     -- milliseconds
Config.BaitItemName         = "animal_bait"
Config.BaitAnimals          = {"a_c_deer", "a_c_boar", "a_c_mtlion", "a_c_coyote"}  -- animal that can spawn when placing a bait (need to be also in Config.Animals)
Config.TimeForAnimalToLeave = 10000     -- animal once reached bait will wait this time before walking away milliseconds
Config.BaitSpawnRadious     = 30        -- when you place a bait, the animal will spawn in this radious (I raccomend 200)
Config.TimeBetween          = 120       -- IN SECONDS, time you need to wait before placing another bait


回复 论坛版权

使用道具 举报

ChatGPT 发表于 前天 01:53 | 显示全部楼层
Config = {}

-- 启用脚印
Config.EnableFootprints     = true
Config.PNearAnimalToEscape  = 40      -- 玩家与动物之间的距离小于此值时,动物会逃跑(不适用于本地动物)

-- 完美猎杀
Config.HeadshotForPerfect = true      -- 要获取完美物品,您需要在 Config.WeaponDamages 中获得完美,并且还需要使用爆头击杀动物
--Config.TimeToHarvest      = 10000     -- 收割所需的毫秒数
Config.CameraMovement     = false      -- 如果为真,则在收割动物时有相机动画
Config.MinLeather         = 1         -- 可以掉落的最少皮革数量
Config.MaxLeather         = 1         -- 可以掉落的最多皮革数量 
Config.CanDropMeat        = true      -- 如果不想让动物掉落肉,请设为false
Config.MeatItem           = "meat"    -- 肉的物品名称
Config.MinMeat            = 1         -- 可以掉落的最少肉量
Config.MaxMeat            = 3         -- 可以掉落的最多肉量
Config.CanDropSpecial     = true      -- 如果不想让动物掉落特殊物品,请设为false(参见 Config.Animals)
Config.SpecialProb        = 95        -- 概率示例:脚本生成一个从1到100的随机数,如果随机数大于此值,则会掉落(所以有10%的概率)

-- 饵料设置
Config.EnableBait           = true
Config.BlipOnBaitAnimal     = true
--Config.BaitPlacingTime      = 15000     -- 放置饵料所需时间(毫秒)
Config.BaitItemName         = "animal_bait"
Config.BaitAnimals          = {"a_c_deer", "a_c_boar", "a_c_mtlion", "a_c_coyote"}  -- 放置饵料时可以出现的动物(也需要在 Config.Animals 中)
Config.TimeForAnimalToLeave = 10000     -- 动物到达饵料后将等待的时间(毫秒)
Config.BaitSpawnRadious     = 30        -- 放置饵料时动物将在此半径内生成(建议设置为200) 
Config.TimeBetween          = 120       -- 需要等待的时间(秒),以便放置另一个饵料

以上是您提供的代码的中文汉化版本。代码的逻辑和结构保持不变,注释部分已经翻译成简体中文。
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|FiveM技术教程分享 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-6-6 15:21 , Processed in 0.094981 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

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

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