这是一个 QBCore 脚本,允许玩家使用物品抛硬币。使用该物品时,将播放带有自定义声音的抛硬币动画,结果(正面或反面)将显示在聊天框中。
- 专为 QBCore 框架而设计。
- 要求玩家拥有游戏内硬币物品来触发抛掷。
- 在动画期间使用 qb-progressbar。
- 在抛硬币时播放自定义声音。
- 在聊天中显示结果和角色的名字。
- 解压缩并将文件夹放在您的目录中。
joeyb_cointoss
resources
- 将文件夹中的文件放入您的目录中。
coin.png
Other Files
/qb/qb-inventory/html/images
- 将文件夹中的文件放入您的目录中。
coin_flip.ogg
Other Files
/interact-sound/client/html/sounds
- 将以下行添加到您的文件中:
/qb-core/shared/items.lua
coin = { name = 'coin', label = 'Coin', weight = 0, type = 'item', image = 'coin.png', unique = false, useable = true, shouldClose = true, description = 'A singular quarter. Use it to do a coin toss for fun or make bets on it!' },
- 要抛硬币:打开你的物品栏并使用该物品,或者将物品放在你的热键栏中并使用栏位的键位。
coin
- 抛硬币将触发进度条、动画和音效。
- 几秒钟后,结果将出现在聊天中:。
John Doe tossed a coin. Result: Heads
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容