Umbreon
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-umbreon
folder into your resources. After that, follow each step for your inventory.
Additionally, you can find the inventory image in the folder aswell.
ESX
Go to es_extended/config.weapons.lua
and under the Weapons category you will import the following:
{
name = 'WEAPON_STAUMBREON',
label = 'Umbreon',
ammo = {label = _U('ammo_rounds'), hash = GetHashKey("AMMO_RIFLE")},
tints = Config.DefaultWeaponTints,
components = {
{name = 'clip_default', label = _U('component_clip_default'), hash = GetHashKey("STAUMBREON_MAG1")},
}
},
OX Inventory
Go to ox_inventory/data/weapons.lua
and under the Weapons category you will import the following:
['WEAPON_STAUMBREON'] = {
label = 'UMBREON',
weight = 3000,
durability = 0.03,
ammoname = 'ammo-rifle',
},
For the components, you will go to the Components category and import the following:
['staumbreon_clip'] = {
label = 'Umbreon Rifle Clip',
type = 'magazine',
weight = 280,
client = {
component = {
`STAUMBREON_MAG1`,
},
usetime = 2500
}
},
For the image, you go to ox_inventory/web/images
and you upload the WEAPON_STAUMBREON.PNG to there.
QB Core
Step 1: Go to qb-core/shared/items.lua
and import the following:
weapon_staumbreon = { name = 'weapon_staumbreon', label = 'Umbreon', weight = 1000, type = 'weapon', ammoType = 'AMMO_RIFLE', image = 'WEAPON_STAUMBREON.png', unique = false, useable = false, description = 'Umbreon' },
Step 2: Go to qb-core/shared/weapons.lua
and import the following:
[`weapon_staumbreon`] = { name = 'weapon_staumbreon', label = 'umbreon', 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_staumbreon = 0.15
At WeaponAttachments, add the following at clip_attachment: weapon_staumbreon = `STAUMBREON_MAG1`,
Step 4: Go to qb-weapons/client/weapdraw.lua
and import the following at weapons: 'weapon_staumbreon',
Step 5: Go to qb-weapons/client/recoil.lua
and import the following at recoils: [`weapon_staumbreon`] = 0.3
Step 6: Go to qb-ambulancejob/config.lua
and import the following at Weapons: [`weapon_staumbreon`] = Config.WeaponClasses['HIGH_CALIBER'],
For the image, you go to qb-inventory/html/images
and you upload the WEAPON_STAUMBREON.PNG to there.
After this, go to server.cfg
and add ensure cobra-umbreon
and restart the server.
If you are still encountering any issues, please open a ticket at our discord server.
Last updated