[Release][ESX] Proper Rack/Unrack weapon script

Yeah it’s a possibility, I’m all down to suggestions so I’ll take a look at it soon and see what’s what.

1 Like

I really like this script and you did a great job but I have a suggestion, you should make it so instead of commands you just switch to the weapon next to the vehicle.

Hmm… I’m a bit confused here, the reason it’s a command is so it can be executed… how can it be executed without it, unless you mean keybinded? for example… numpad7 or so on… I’d love to hear more on this! :slight_smile:

Not necessarily do you mind if I post a link to another post as an example?

Yeah sure, go for it

If you Want i Can help maybe we Can make a version together ? Let me know

Yeah for sure, hit me up in the DM’s and we’ll put our heads together, see what we can do and so on :slight_smile:

Does this one give me max ammo if I put a gun with 0 ammo into the vehicle too? =p

This doesn’t work for me, player is stuck in the animation forever and never pulls weapon out.

1 Like

Can you describe what you’re doing so I can try reproduce the error?

It remove’s the weapon in total, then if you type /unrack, it will add the weapon and set the wepaon ammo to 130 which is one fully loaded clip and 3 magazines spare in technical terms.

I’ve literally just dropped the server into resources and put the file name (without -master) into the config.cfg like you would with any other script.

I attempted to use my own progress bars which isn’t work, so just reverted the code back and made sure I didn’t miss any commas or {'s etc etc.

Is anybody else having trouble with /unrack - it just does the animation forever and doesn’t do anything else.

Hm, I know the animation issue is related to the Progress Bar’s via Alzar, make sure this resource is named exactly “mythic_progbar” without the Quotations.

If you want me to possibly help setup the script to work with your progress bars, shoot me a PM and I’ll see what we can do :slight_smile:

Can we save ammo? :thinking: put in with 0 take out with 0, put in with 10 take out with 10

1 Like

At the moment, I have no intention with it saving ammo, but I can always look into this if it brings more attraction, but it’s a pretty good idea I won’t lie.

2 Likes

id like to see a script like this that is the whole package. Ammo saving would be really nice.

1 Like

The whole package as in no extra resources?

I’ll take a look and see what I can do, the main reason why it’s two resources is because I have my own resource which has a bunch of stuff it;
/extra (for vehicle extras)
/(un)rack
/trunk
/hood

And a lot more you get the idea, so I had to release it like this.
As I’m not the best with NUI and I doubt I ever will be, I can possibly seek out someone that knows NUI and we’ll try do an all-in-one script.

As for the saving ammo; the main problem is - is that it can create unforeseen problems, IE; Multiple people, possible exploits for ammo dupe, possible weapon dupes and a few more that I can’t think of right now.

I mean in real life if u rack a weapon with let’s say, 10 bullets, u don’t unrack it with 10 bullets, u reload the weapon also.

1 Like

Hey what would be the best way to add multiple weapons? such as a shotgun? Think you could help me out? Update 60 seconds later - I was being stupid Figured it out…author is it okay to hand it out said version if asked for it? PS you’re awesome