尝试索引零值(本地“武器”)
在第一行是错误
local component = weapon.components[i]
local hasComponent = HasPedGotWeaponComponent(playerPed, GetHashKey(v.weapon), component.hash)
if hasComponent then
label = ('%s: <span style="color:green;">%s</span>'):format(component.label, _U('armory_owned'))
else
if v.components[i] > 0 then
label = ('%s: <span style="color:green;">%s</span>'):format(component.label, _U('armory_item', ESX.Math.GroupDigits(v.components[i])))
else
label = ('%s: <span style="color:green;">%s</span>'):format(component.label, _U('armory_free'))
end
end

发布于 2022-08-10 16:51:54
我不完全确定这是否可行,但这将是我的解决办法:
看看你的剧本里有没有这个!
ESX=nil
如果不写在顶部!
https://stackoverflow.com/questions/70578517
复制相似问题