Blue Iced Rifle

Here we will explain how you can import the weapon in the inventory.

Install Folder

First and foremost, you need to download and move the cobra-blueicedrifle folder into your resources. After that, follow each step for your inventory.

Additionally, you can find the inventory image in the folder aswell.

Remember that for no matter the inventory, you can change the labels of each weapon to whatever you want.

ESX

Go to es_extended/config.weapons.lua and under the Weapons category you will import the following:

{
        name = 'WEAPON_AR15ICEDBLUE',
        label = 'AR-15 Blue Iced',
        ammo = {label = _U('ammo_rounds'), hash = GetHashKey("AMMO_RIFLE")},
        tints = Config.DefaultWeaponTints,
        components = {
            {name = 'clip_extended', label = _U('component_clip_extended'), hash = GetHashKey("COMPONENT_CARBINERIFLE_CLIP_02")},
            {name = 'scope_medium_3', label = _U('component_scope_medium_3'), hash = GetHashKey("AR15ICEDBLUE_SCOPE_MEDIUM_3")},
        }
},

OX Inventory

Go to ox_inventory/data/weapons.lua and under the Weapons category you will import the following:

['WEAPON_AR15ICEDBLUE'] = {
    label = 'Iced Blue Rifle',
	weight = 3000,
	durability = 0.03,
	ammoname = 'ammo-rifle',
},

For the components, you will go to the Components category and import the following:

['blueiced_scope'] = {
    label = 'Blue Iced Rifle Scope',
	type = 'sight',
	weight = 280,
	client = {
        component = {
            `AR15ICEDBLUE_SCOPE_MEDIUM_3`,
	    },
	    usetime = 2500
	}
},
['blueiced_mag'] = {
    label = 'Iced Blue Rifle Clip',
    type = 'magazine',
	weight = 280,
	client = {
	component = {
		`COMPONENT_CARBINERIFLE_CLIP_02`,
	},
	usetime = 2500
    }
},

For the image, you go to ox_inventory/web/images and you upload the WEAPON_AR15ICEDBLUE.PNG to there.

QB Core

Step 1: Go to qb-core/shared/items.lua and import the following:

WEAPON_AR15ICEDBLUE            = { name = 'WEAPON_AR15ICEDBLUE', label = 'Blue Iced Rifle', weight = 1000, type = 'weapon', ammoType = 'AMMO_RIFLE', image = 'WEAPON_AR15ICEDBLUE.png', unique = false, useable = false, description = 'Blue Iced Rifle' },   

Step 2: Go to qb-core/shared/weapons.lua and import the following:

[`WEAPON_AR15ICEDBLUE`]            = { name = 'WEAPON_AR15ICEDBLUE', label = 'Blue Iced Rifle', weapontype = 'Assault Rifle', ammotype = 'AMMO_RIFLE', damagereason = 'Ended / Rifled / Shot down / Floored' },

Step 3: Go to qb-weapons/config.lua and import the following:

  • At DurabilityMultiplier, add the following: WEAPON_AR15ICEDBLUE = 0.15

  • At WeaponAttachments, add the following at clip_attachment: weapon_ar15icedblue = `COMPONENT_CARBINERIFLE_CLIP_02`, and at medscope_attachment: WEAPON_AR15ICEDBLUE = `AR15ICEDBLUE_SCOPE_MEDIUM_3`,

Step 4: Go to qb-weapons/client/weapdraw.lua and import the following at weapons: 'weapon_ar15icedblue',

Step 5: Go to qb-weapons/client/recoil.lua and import the following at recoils: [`weapon_ar15icedblue`] = 0.3

Step 6: Go to qb-ambulancejob/config.lua and import the following at Weapons: [`weapon_ar15icedblue`] = Config.WeaponClasses['HIGH_CALIBER'],

For the image, you go to qb-inventory/html/images and you upload the WEAPON_AR15ICEDBLUE.PNG to there.

After this, go to server.cfg and add ensure cobra-blueicedrifle and restart the server.

Last updated