[Tebex 5€ + tax]
[Preview Video]
Weapon Sling
Allows you to sling your weapon on front and on back.
Requires user to first unrack their weapon from vehicle trunk and disallows putting it away until racked again (They can sling it to use other guns or to free their hands).
Features:
- Fully customizable attachments, vests and coordinates
- Works with vanilla and addon weapons
- Preserves and shows all attachments
- Preserves and shows all weapon tints (experimental)
- Works with custom weapon skins and addons
- Automatic selection of the Sling for special bulletproofs
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 1500 |
| Requirements | standalone |
| Support | Yes |
Configuration:
- Customizable Commands
- Customizable Weapon Lists
- Customizable Sling types for Male and Female
- Customizable Notification
Config = {}
Config.ExperimentalMode = true --| Enables weapon tints, but that's work in progress
--| weapons that take longer to draw
Config.SlowEquip = {
'WEAPON_PISTOL',
'WEAPON_PISTOL_MK2',
'WEAPON_COMBATPISTOL',
'WEAPON_APPISTOL',
'WEAPON_STUNGUN',
'WEAPON_PISTOL50',
--'WEAPON_SNSPISTOL',
--'WEAPON_SNSPISTOL_MK2',
'WEAPON_HEAVYPISTOL',
'WEAPON_VINTAGEPISTOL',
--'WEAPON_FLAREGUN',
'WEAPON_MARKSMANPISTOL',
'WEAPON_REVOLVER',
'WEAPON_REVOLVER_MK2',
'WEAPON_DOUBLEACTION',
'WEAPON_CERAMICPISTOL',
'WEAPON_NAVYREVOLVER',
'WEAPON_GADGETPISTOL',
'WEAPON_STUNGON_MP',
--'WEAPON_PISTOLMX3',
'WEAPON_MICROSMG',
'WEAPON_MACHINEPISTOL',
'WEAPON_MINISMG',
'WEAPON_SAWNOFFSHOTGUN',
'WEAPON_DBSHOTGUN',
'WEAPON_AUTOSHOTGUN',
}
--| to put the gun back in the trunk
Config.Rack = 'rack' --| command
Config.RackTime = 4000 --| time
--| weapons which must be on the back to be used
Config.SlingWeapons = {
'WEAPON_SMG',
'WEAPON_SMG_MK2',
'WEAPON_ASSAULTSMG',
'WEAPON_COMBATPDW',
'WEAPON_PUMPSHOTGUN',
'WEAPON_PUMPSHOTGUN_MK2',
'WEAPON_ASSAULTSHOTGUN',
'WEAPON_BULLPUPSHOTGUN',
'WEAPON_MUSKET',
'WEAPON_HEAVYSHOTGUN',
'WEAPON_COMBATSHOTGUN',
'WEAPON_ASSAULTRIFLE',
'WEAPON_ASSAULTRIFLE_MK2',
'WEAPON_CARBINERIFLE',
'WEAPON_CARBINERIFLE_MK2',
'WEAPON_ADVANCEDRIFLE',
'WEAPON_SPECIALCARBINE',
'WEAPON_SPECIALCARBINE_MK2',
'WEAPON_BULLPUPRIFLE',
'WEAPON_BULLPUPRIFLE_MK2',
'WEAPON_COMPACTRIFLE',
'WEAPON_MILITARYRIFLE',
'WEAPON_HEAVYRIFLE',
'WEAPON_TACTICALRIFLE',
'WEAPON_MG',
'WEAPON_COMBATMG',
'WEAPON_COMBATMG_MK2',
'WEAPON_GUSENBERG',
'WEAPON_SNIPERRIFLE',
'WEAPON_HEAVYSNIPER',
'WEAPON_HEAVYSNIPER_MK2',
'WEAPON_MARKSMANRIFLE',
'WEAPON_MARKSMANRIFLE_MK2',
'WEAPON_PRECISIONRIFLE',
}
--| weapon slings
Config.ChangeSling = 's' --| command to change > e.g.: /s 2
Config.SlingsMale = { --| sling variations for male ped models
-- eleven preinstalled slings
}
Config.SlingsFemale = { --| sling variations for female ped models
-- eleven preinstalled slings
}
--| automatically change the weapon sling
Config.UseAutoSling = false --| you need to have esx_skin
Config.CallbackTimeout = 1000 * 1 --| check time
--| auto slings for male peds
--> to get your current vest use /getvest
--> the vest id must allwasy be in []
--> [vestid] = slingid
Config.AutoSlingMale = {
--> front vests
[26] = 4,
}
--| auto slings for female peds
Config.AutoSlingFemale = {
--> front vests
[26] = 4,
}
--| notify trigger
Config.Notification = function(text)
BeginTextCommandThefeedPost('STRING') --| gta5 default feature
AddTextComponentSubstringPlayerName(text)
EndTextCommandThefeedPostTicker(0,1)
end
--| translations
Config.Translation = {
['needTrunk1'] = 'You have to be at a trunk to draw the rifle!',
['needTrunk2'] = 'You have to be at a trunk to put your rifle away!',
['setSling'] = 'You have successfully changed the sling!',
['notAvalible'] = 'This sling ID is not available'
}
UPDATE v1.2.1
| added pistol holster (experimental) | |
| begun the weapon tint rework | |
| added update checker |
