Skip to content

RadhwaneDZ/sling_script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sling Script

FiveM weapon sling script

Description

This script allows players to sling their weapons to the back/front.

Preview

You can see a preview of how this works here

Features

  • Allows to customize what weapons can be used (see config.lua)
  • Allows to customize if a weapon can be used only in the back or if it can be used in the front too
  • The command is configurable
  • Keeps weapons attachaments on "unsling"
  • Keeps weapons ammo on "unsling"
  • Syncronized across network

To-Do

  • Adding weapons mag and attachaments to the object (currently i can't figure out a good way of doing it due to the coords)
  • Adding keybinds to the script (currently clients can do it on their side using console keybinds

Config

The default config allows for the following weapons with all their components:

  • SMG
  • AR
  • Sniper Rifle (back only)
  • Heavy Sniper (back only)
  • Heavy Sniper Mk2 (back only)
  • Marksman rifle
  • Pump shotgun
  • Sawn-off shotgun
  • Marksman rifle MK2

You can add other weapons by finding their weapon hashes, component hashes and object names:

The "allowone" stands for if its allowed on the front or not. True = allowed, false = not allowed.

Credits

This is based of Scully's Sling Script

Indecision#7334 for helping me test and giving suggestions

About

FiveM weapon sling script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%