|
| 1 | +--- |
| 2 | +title: Ammo as Items [V3 / V4] |
| 3 | +description: Weapon Ammunition as Items |
| 4 | +sidebar_position: 2 |
| 5 | +--- |
| 6 | + |
| 7 | +# Ammo as Items [V3 / V4] |
| 8 | + |
| 9 | +We all know the issue with ESX and Weapon Ammunition. With this Script you get Ammo as Items. |
| 10 | +So if you have 10x 9mm items in your inventory you can shoot 10 times. |
| 11 | + |
| 12 | +You can set as many items as you want in config.lua |
| 13 | + |
| 14 | +**Github Repository:** https://github.com/MSK-Scripts/msk_weaponammoitems |
| 15 | + |
| 16 | +## Config |
| 17 | +```lua |
| 18 | +Config = {} |
| 19 | +---------------------------------------------------------------- |
| 20 | +Config.VersionChecker = true |
| 21 | +---------------------------------------------------------------- |
| 22 | +Config.AmmoPacks = { |
| 23 | + -- ['magazine_item'] -> Upload this item into your database! |
| 24 | + -- Use those magazine items, then you get the ammo items |
| 25 | + |
| 26 | + ['9mm_magazine'] = {item = '9mm', amount = 12}, |
| 27 | + ['12gauge_magazine'] = {item = '12gauge', amount = 25}, |
| 28 | + ['556mm_magazine'] = {item = '556mm', amount = 30}, |
| 29 | + ['762mm_magazine'] = {item = '762mm', amount = 30}, |
| 30 | + ['68kal_magazine'] = {item = '68kal', amount = 30}, |
| 31 | +} |
| 32 | + |
| 33 | +Config.Ammunition = { |
| 34 | + -- If you have one of these items in your inventory you have automatically ammunition in your weapon |
| 35 | + |
| 36 | + ['9mm'] = { -- Upload this item into your database! |
| 37 | + 'WEAPON_PISTOL', |
| 38 | + 'WEAPON_PISTOL_MK2', |
| 39 | + 'WEAPON_COMBATPISTOL', |
| 40 | + 'WEAPON_APPISTOL', |
| 41 | + 'WEAPON_PISTOL50', |
| 42 | + 'WEAPON_SNSPISTOL', |
| 43 | + 'WEAPON_SNSPISTOL_MK2', |
| 44 | + 'WEAPON_HEAVYPISTOL', |
| 45 | + 'WEAPON_VINTAGEPISTOL', |
| 46 | + 'WEAPON_MARKSMANPISTOL', |
| 47 | + 'WEAPON_REVOLVER', |
| 48 | + 'WEAPON_REVOLVER_MK2', |
| 49 | + 'WEAPON_DOUBLEACTION', |
| 50 | + 'WEAPON_CERAMICPISTOL', |
| 51 | + 'WEAPON_NAVYREVOLVER', |
| 52 | + 'WEAPON_GADGETPISTOL', |
| 53 | + }, |
| 54 | + ['12gauge'] = { -- Upload this item into your database! |
| 55 | + 'WEAPON_PUMPSHOTGUN', |
| 56 | + 'WEAPON_PUMPSHOTGUN_MK2', |
| 57 | + 'WEAPON_SAWNOFFSHOTGUN', |
| 58 | + 'WEAPON_ASSAULTSHOTGUN', |
| 59 | + 'WEAPON_BULLPUPSHOTGUN', |
| 60 | + 'WEAPON_HEAVYSHOTGUN', |
| 61 | + 'WEAPON_DBSHOTGUN', |
| 62 | + 'WEAPON_AUTOSHOTGUN', |
| 63 | + 'WEAPON_COMBATSHOTGUN', |
| 64 | + }, |
| 65 | + ['556mm'] = { -- Upload this item into your database! |
| 66 | + 'WEAPON_MICROSMG', |
| 67 | + 'WEAPON_SMG', |
| 68 | + 'WEAPON_SMG_MK2', |
| 69 | + 'WEAPON_ASSAULTSMG', |
| 70 | + 'WEAPON_COMBATPDW', |
| 71 | + 'WEAPON_MACHINEPISTOL', |
| 72 | + 'WEAPON_MINISMG', |
| 73 | + }, |
| 74 | + ['762mm'] = { -- Upload this item into your database! |
| 75 | + 'WEAPON_ASSAULTRIFLE', |
| 76 | + 'WEAPON_ASSAULTRIFLE_MK2', |
| 77 | + 'WEAPON_CARBINERIFLE', |
| 78 | + 'WEAPON_CARBINERIFLE_MK2', |
| 79 | + 'WEAPON_ADVANCEDRIFLE', |
| 80 | + 'WEAPON_SPECIALCARBINE', |
| 81 | + 'WEAPON_SPECIALCARBINE_MK2', |
| 82 | + 'WEAPON_BULLPUPRIFLE', |
| 83 | + 'WEAPON_BULLPUPRIFLE_MK2', |
| 84 | + 'WEAPON_COMPACTRIFLE', |
| 85 | + 'WEAPON_MILITARYRIFLE', |
| 86 | + 'WEAPON_HEAVYRIFLE', |
| 87 | + 'WEAPON_TACTICALRIFLE', |
| 88 | + 'WEAPON_SNIPERRIFLE', |
| 89 | + 'WEAPON_HEAVYSNIPER', |
| 90 | + 'WEAPON_HEAVYSNIPER_MK2', |
| 91 | + 'WEAPON_MARKSMANRIFLE', |
| 92 | + 'WEAPON_MARKSMANRIFLE_MK2', |
| 93 | + 'WEAPON_PRECISIONRIFLE', |
| 94 | + }, |
| 95 | + ['68kal'] = { -- Upload this item into your database! |
| 96 | + 'WEAPON_MUSKET', |
| 97 | + 'WEAPON_MG', |
| 98 | + 'WEAPON_COMBATMG', |
| 99 | + 'WEAPON_COMBATMG_MK2', |
| 100 | + 'WEAPON_GUSENBERG', |
| 101 | + }, |
| 102 | +} |
| 103 | +``` |
0 commit comments