Installation:
Rename ‘rack-unrack-master’ to ‘rack-unrack’(If you downloaded through github)
Add ‘start rack-unrack’ to your server.cfg
Restart your server
Enjoy!
Features:
Easily rack and unrack your rifle and shotgun.
Commands: /rackr or /rackrifle, /racks or /rackshotgun, /unrackr or /unrackrifle, /unracks or /unrackshotgun
This is an edited version of @BabbaTundaee’s script.
You could greatly improve this code by creating one function that takes a weapon model, name and toggle boolean which results in either adding or removing a weapon.
At this point what you pretty much did is copy aka_Lucifer’s code and change the weapon names. This is not considered of any additional value and resembles the original too much to not be considered your own code.
This code is an exact copy of what you used except you change function names and the type of weapon. You need to provide additional original work/content.
As an example, I mentioned that you can reduce the code and make it highly configurable by adding a function that takes in the parameters as mentioned.
If you don’t know what I mean, then this topic will remain unlisted as there’s no additional value of this for the forum/community.
Since there are new rules, the moderation team put forth certain quality requirements. The original code is exempt from that.
Due to you only changing the weapon models, this release does not have any added value compared to the original release.
The least you can do is make this completely configurable where users can easily add a weapon hash and or weapon name and customize it. Much like the “Weapon blacklist” scripts.