example
example

已解决√ 求助 qbcore枪加不上子弹

状态
此线程已解决! 转到解决方案...

哇呜哇呜

用户
高级用户
认证用户
lua:
   pistol_ammo                  = { name = 'pistol_ammo', label = '手枪弹药', weight = 200, type = 'item', image = 'pistol_ammo.png', unique = false, useable = true, shouldClose = true, description = '手枪弹药' },
    weapon_pistol                = { name = 'weapon_pistol', label = 'M1911', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'weapon_pistol.png', unique = true, useable = false, description = '设计为单手握持的小型枪支' },
配置应该没问题,为什么会加不上子弹,全部枪都加不上FD5793CE651C1094CCA394BE318383D2.pngF8有这条
 
最后编辑:

Yann

站长
管理成员
GTAOS管理组
认证卖家
认证用户
本 月 名 人 榜 最 佳
1721951984132.png1721951990654.png这两个应该不是一个东西吧,不是一个东西就不可能加在枪里边
 

Yann

站长
管理成员
GTAOS管理组
认证卖家
认证用户
本 月 名 人 榜 最 佳
还有右上角gta自带的子弹数量显示没了在哪设置
添加在任何客户端文件中
lua:
Citizen.CreateThread(function()
    while true do -- Exists so it runs every frame (while true means all the time, basically)
        DisplayAmmoThisFrame(false) -- Using the native to disable it
        Citizen.Wait(0) -- Waiting 0ms to make the loop run every single frame with no exceptions
    end
end)
 
状态
此线程已解决! 转到解决方案...
顶部