一个 FiveM 脚本,可让您用道具制作无限的食品
- 支持多种语言
- 制作无限的定制食品
- 决定食物物品给玩家多少食物/水
- 选择当玩家吃食物或喝饮料时,手上会显示什么特别投注
- 进度条:食用时将显示食品/饮料项目标签,而无需在配置中添加它,例如,如果食品标签为“Cheese Burger”,那么在用餐时,进度条将有一个描述,上面写着“Eating Cheese Burger…”等。
它是如何工作的?
很简单,您创建一个您想要成为食品或饮料的项目。然后在配置文件中添加您的项目。您可以选择当玩家吃或喝食物时,它会给玩家多少食物或饮料。以及玩家吃东西时会显示在手上的道具。
兼容性:QB核心 ESX
依赖: ox_lib
config:
config = {}
config.framework = 'qb' -- esx or qb
config.food = {
['burger'] = { -- item name
add = 30, -- amount of food to give player
dur = 6000, -- the time it takes to eat the food (in milliseconds)
prop = { -- prop settings
enable = true, -- enable or disable food prop
model = 'prop_cs_burger_01', -- prop model name
pos = vec3(0.0, 0.0, -0.02), -- the props position relative to the players hand
rot = vec3(30, 0.0, 0.0) -- the props rotation
}
},
-- ADD AS MANY AS YOU WANT:
-- ['itemname'] = {
-- add = 30,
-- dur = 6000,
-- prop = {
-- enable = true,
-- model = 'propmodel',
-- pos = vec3(0.0, 0.0, -0.02),
-- rot = vec3(30, 0.0, 0.0)
-- }
-- },
}
config.drink = {
['water'] = { -- item name
add = 30, -- amount of drink to give player
dur = 6000, -- the time it takes to drink the drink (in milliseconds)
prop = { -- prop settings
enable = true, -- enable or disable food prop
model = 'vw_prop_casino_water_bottle_01a', -- prop model name
pos = vec3(0.03, 0.03, 0.02), -- the props position relative to the players hand
rot = vec3(0.0, 0.0, -1.5) -- the props rotation
}
},
-- ADD AS MANY AS YOU WANT
-- ['itemname'] = {
-- add = 30,
-- dur = 6000,
-- prop = {
-- enable = true,
-- model = 'propmodel',
-- pos = vec3(0.03, 0.03, 0.02),
-- rot = vec3(0.0, 0.0, -1.5)
-- }
-- },
}
config.language = 'en'
--**ACCEPTED LANGUAGES**--
--en
--es
--ar
--de
--bs
--cn
--cs
--da
--ee
--el
--et
--fa
--fi
--fr
--ge
--he
--hu
--id
--it
--lv
--nl
--no
--pl
--pt
--pt-br
--ro
--rs
--ru
--sl
--sv
--th
--tr
--vn
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容