/qb-beanbagshotgun

A less lethal shotgun for police to use, basically and alternative to a taser (QBCORE)

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Bean Bag Shotgun

Addon bean bag shotgun to use with qbcore

Installation:

Add to qb-core/shared/weapons.lua

[`weapon_beanbagshotgun`]					= {['name'] = 'weapon_beanbagshotgun',				['label'] = 'Non-Lethal Shotgun',						['ammotype'] = 'AMMO_SHOTGUN',						['damagereason'] = 'Hit by a bean bag'},
  

Add to qb-core/shared/items.lua

	['weapon_beanbagshotgun'] 			 = {['name'] = 'weapon_beanbagshotgun', 		 	  	['label'] = 'Non-Lethal Shotgun', 			    ['weight'] = 1000, 		['type'] = 'weapon', 	['ammotype'] = 'AMMO_SHOTGUN',			['image'] = 'weapon_beanbagshotgun.png', 		['unique'] = true, 		['useable'] = false, 	['description'] = 'A Non-lethal version of the Remington 870'},

Add to qb-weapons/config.lua at Config.DurabilityMultiplier

    ['weapon_beanbagshotgun'] 		= 0.0,

Add to qb-weapons/config.lau at WeaponAttachments

    ['WEAPON_BEANBAGSHOTGUN'] = {
        ['defaultclip'] = {
            component = 'COMPONENT_BEANBAGSHOTGUN_CLIP_01',
            item = 'pumpshotgun_defaultclip',
            type = 'clip',
        },
    },

Add to qb-ambulancejob/config.lua

    [`WEAPON_BEANGBAGSHOTGUN`] = Config.WeaponClasses['NONE'],

Add this image to qb-inventory/html/images with name: weapon_beanbagshotgun.png weapon_beanbagshotgun

Weapon Model and skin credits:

https://www.gta5-mods.com/weapons/less-lethal-shotgun-bean-bag-shotgun