QB|ESX 智能出租车fivem资源网-fivem插件网-fivem脚本-fivem技术-fivem分享FIVEM资源网
1个月前1160人已阅读
TOP2
FiveM 的咖啡机脚本fivem资源网-fivem插件网-fivem脚本-fivem技术-fivem分享FIVEM资源网
1个月前990人已阅读
TOP3
自定义职业/帮派仓库QBfivem资源网-fivem插件网-fivem脚本-fivem技术-fivem分享FIVEM资源网
1个月前1890人已阅读
TOP4
PVP占领区脚本fivem资源网-fivem插件网-fivem脚本-fivem技术-fivem分享FIVEM资源网
1个月前1636人已阅读
TOP5
动画加载屏幕fivem资源网-fivem插件网-fivem脚本-fivem技术-fivem分享FIVEM资源网
2个月前1671人已阅读
TOP6

制作无限的食品

一个 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

 

制作无限的食品-FIVEM资源网

 

© 版权声明
THE END
喜欢就支持一下吧
点赞49赞赏 分享
评论 共1条

请登录后发表评论