This resource places and replaces the gun from its holster when the player has the weapon in hand.
Many peds (particularly EUP) have holster textures with and without a gun. This resource takes advantage by seamlessly switching the clothing of the ped when the player draws the weapon. This adds a nice touch for realism and is particularly useful for law enforcement role-play.
GIF to demonstrate:
Features:
Easy to configure.
Handles multiple peds.
Handles multiple holsters on each ped, regardless of what category/component they’re from.
Built-in support for all holsters on both the latest male and female EUP multiplayer peds.
Well optimised, it only runs when the player is using a supported ped and at sensible intervals. The player’s clothing will only be set when they draw the weapon.
Players can toggle off and on using command /holsters.
Does this work with multiple weapons? It only shows the combat pistol in the config, can I just add another one after it and it will work with that one too? Can I set up a separate set of belts with a taser (there’s one thats filled and one thats empty)?
@EvanM89 This only works with just one weapon at the moment and trying to add more will break the config. But adding support for additional weapons like tasers is something I’m willing to look at.
Not currently, but adding animations is an option I’ve considered. However the animation wouldn’t match some of the holsters (like leg holsters), so I’d have to figure out a way to make that configurable.
Hi there, thanks for your enquiry, you seem to have missed a comma in the config which is most likely what’s causing your issues, as commas are required to separate elements of lists in lua. The line that says:
[8] = 2
should be:
[8] = 2,
You also have that same holster specified 2 lines below. I don’t actually know the outcome of duplicating holsters in the config, but that may also cause you issues and I’d only specify that holster once. If you’re using just default EUP, then it should already be set up for you.
I’m not sure if I should be asking this here. But I can’t find a full and an empty holster.
Due to this I cannot make this script work.
Any help would be appreciated!
This script is made to give functionality to peds that do have those different holster drawables, so if it doesn’t have them then the script won’t be any use.
Is there an explanation on how to sync this script with EUP? Also, I can’t find any good holsters for my server for the MP ped models. Do you recommend any in particular?
@Jamelele1 Is there a way to get multiple firearms to exit the holster so I can have it so the pistol also does the same thing along with the combat pistol?