Hi, this is my first script. I made a modern HandsUP with a few features:
Action blocking;
(to block shooting, aiming, attacking, reloading and weapon switching while raising hands)
Weapon (if hold) visible in the hands;
Hotkey button (configurable in the settings);
Fixed ragdoll;
Crouch compatible;
Exports to raise, lower and check the states of the hands with other scripts.
UPDATE
Hi, i updated the script with a few things
Vehicle controls
Reload bug fix
Also i made a preview of the script:
SECOND UPDATE
I have rewrote the script, also i added new config and a new main function, surrendering.
I have made that if the setting for raising hands in vehicles is enabled and you actually raise hands in a car, you can’t turn (because you don’t have your hands on the steering wheel).
In the new config you can change the name of the option in the keybind setting to your preferred language, and also animations and anim dicts if you want to use a different animation.
I am quite late and doubt that you’re making changes anymore, but could you perhaps add an option so that, while the player has hands up, they can press X to get in the surrender state. And then backwards same, press X to get away of the surrender state back to the hands up, and then Z to lay down hands.
Hey, thanks for the suggestion, honestly I have plenty of time so why not. Just to be clear, you mean that when you double click X instead of a single press the animation of surrender plays on the ped and pressing X again stops the surrender.
Not a double click, I meant as in let’s say we’re in a normal standing mode, we press “Z” key, it raises hands and WHILE hands are up, you could press “X” key to go into surrender state. Then only way of getting away from surrender state, is to press “X” again which returns the state back to handsup, then “Z” again to lay down hands.
So:
Z → Hands Up
X → Surrender (kneel) (if hands are up(the previous condition is met))
Hard to explain honestly, but hope you get the idea. : )
( Or this can be the other way around too, of course, so X for hands up and Z to surrender (kneel) )
Thank you so much! This is what I was aiming for! Saved me time from coding it myself, haha.
I only found a few interesting things, one being you can’t get of the surrender state with the surrender keybind, rather the hands up. Also I tried switching around the keybinds in the config, which didn’t change it, or it might just be a problem on my end.
But nothing big that I couldn’t fix myself, but again, thank you!!