Hi! I have been trying to add MK2 weapons to my server (ESX) but every time I disconnect and rejoin that weapon is out from my inventory, some pics below.
I guess the issue is on my es_extended
Hi! I have been trying to add MK2 weapons to my server (ESX) but every time I disconnect and rejoin that weapon is out from my inventory, some pics below.
I guess the issue is on my es_extended
Looking for this aswell, anyone that could help?
Hey, i found a solution for this one. I know its a BIT late but im gonna still reply to this. Soo what i did was went to my es_extended file, and found this lua called config.weapons.lua. I was scrolling through it and did not find a single Mark II weapon so i added one myself. I will copy paste it below so you can just copy and paste it to config.weapons.lua
{
name = 'WEAPON_CARBINERIFLE_MK2',
label = _U('weapon_carbinerifle_mk2'),
components = {
{name = 'clip_default', label = _U('component_clip_default'), hash = GetHashKey('COMPONENT_CARBINERIFLE_MK2_CLIP_01')},
{name = 'clip_extended', label = _U('component_clip_extended'), hash = GetHashKey('COMPONENT_CARBINERIFLE_MK2_CLIP_02')},
{name = 'flashlight', label = _U('component_flashlight'), hash = GetHashKey('COMPONENT_AT_AR_FLSH')},
{name = 'holographic', label = _U('component_holographic'), hash = GetHashKey('COMPONENT_AT_SIGHTS')},
{name = 'suppressor', label = _U('component_suppressor'), hash = GetHashKey('COMPONENT_AT_AR_SUPP')},
{name = 'grip', label = _U('component_grip'), hash = GetHashKey('COMPONENT_AT_AR_AFGRIP_02')},
}
},
You most likely formatted it wrong and missed a comma or bracket somewhere
Alright I figured it out the entire layout of it was wrong heres the correct format:
{
name = 'WEAPON_CARBINERIFLE_MK2',
label = _U('weapon_carbinerifle_mk2'),
components = {
{name = 'clip_default', label = _U('component_clip_default'), hash = GetHashKey('COMPONENT_CARBINERIFLE_MK2_CLIP_01')},
{name = 'clip_extended', label = _U('component_clip_extended'), hash = GetHashKey('COMPONENT_CARBINERIFLE_MK2_CLIP_02')},
{name = 'flashlight', label = _U('component_flashlight'), hash = GetHashKey('COMPONENT_AT_AR_FLSH')},
{name = 'holographic', label = _U('component_holographic'), hash = GetHashKey('COMPONENT_AT_SIGHTS')},
{name = 'suppressor', label = _U('component_suppressor'), hash = GetHashKey('COMPONENT_AT_AR_SUPP')},
{name = 'grip', label = _U('component_grip'), hash = GetHashKey('COMPONENT_AT_AR_AFGRIP_02')}
}
},
you ARE a god
As it would be the command of the Mk2 pistol, I have that problem and I cannot add it.