-- ตัวอย่างการใช้งาน
local weapon = AFUCore.GetWeapon('WEAPON_PISTOL')
if weapon then
print(string.format('อาวุธ: %s, ความเสียหาย: %d', weapon.label, weapon.damage))
end
-- ตัวอย่างการใช้งาน
local weaponList = AFUCore.GetWeaponList(true)
for name, weapon in pairs(weaponList) do
print(string.format('อาวุธ: %s', weapon.label))
end
-- ตัวอย่างการใช้งาน
local hash = GetHashKey('WEAPON_PISTOL')
local weapon = AFUCore.GetWeaponFromHash(hash)
print(string.format('อาวุธ: %s', weapon.label))
-- ตัวอย่างการใช้งาน
local component = AFUCore.GetWeaponComponent('WEAPON_PISTOL', 'clip_extended')
if component then
print(string.format('ส่วนประกอบ: %s', component.label))
end
-- ตัวอย่างการใช้งาน
local label = AFUCore.GetWeaponLabel('WEAPON_PISTOL')
print('ชื่ออาวุธ:', label)