Handsup while moving RENAMED TO VK_handsup
Hi everyone,
I just made a simple script that allows you to rise your hands by pressing “X”.
Features :
Press X to raise your hands
Move while raising your hands
Don’t impact the position of the player
Screenshots :
Heading
Instalation
Download from github
Unrar “vk_handsup” folder in your resources folder
Add “vk_handsup” to your AutostartResources in citmp-server.yml
Have fun !
Changing the controls
Go to https://wiki.fivem.net/wiki/Controls and choose the control that you want to use
Edit “client.lua”, goto line 22 and change by your desired index
Same for line 39
For developers only
You can check if the local ped has handsup by using exports.vk_handsup:getSurrenderStatus()
in any resource you want
I also added som server functions to check if the player or target has handsup, more on that later…
Made by a belgian guy that loves FiveM
17 Likes
How to have the top right grades?
Comment faire pour avoir les grades en haut à droite?
@Magistrox Via es_extented !
how can I change the keybind from X to Z?
Borg
May 31, 2017, 3:54pm
5
Cool. Thank you for contributing your time and efforts.
Cool release thanks.
I only see one thing that is a little bad here : Cuffed people can always hands-up.
I will fix that soon as possible
1 Like
In the client.lua, line 7 and 23 change “323” to “20”
Where from can I find out all the keybind codes?
Havoc
June 1, 2017, 4:03pm
10
There are no keys… Only controls and, these can be found on the wiki.
https://wiki.fivem.net/wiki/Controls
1 Like
any fix to stopping players from putting hands up while in a vehicle or cuffed ? kinda ruins the rp any help would be appreciated
Havoc
June 7, 2017, 2:51pm
12
Pretty sure there’s a native something like IsPedInVehicle
hello have you found a fix for this? people that are cuffed putting their handsup?
I have a paid server and I can’t seem to get it working.
I have “handsup” in my citmp-server.yml
in the __resource.lua I have: client_script ‘client.lua’
in the client.lua I have it just like TheGamerRespow has it.
anyone know how to get it working?
Dalek
June 27, 2017, 4:42pm
15
If it is actually clientscript ‘client.lua’
make sure you change it to client_script ‘client.lua’
.
1 Like
Yes I have it set to that, I copied it wrong sorry
Hello my friends,
Sorry for the time passed since you asked me an update for the cuff and vehicle problem but I had my exams(wich I succeed ). So here is the update, I added a LOT of conditions, here are few examples :
Not in vehicle
Not swimming
Not falling
Not climbing
Not cufed
Not diving
On foot
Not using any scenario
And when you press “X”, you’re gonna switch weapon to unarmed
Get the update on Github
1 Like
My man! This script is awesome. I’ll test it out here shortly and let you know if i experience any issues.
1 Like
@TheGamerRespow Awsome script man! However im wondering if you can make a hands behind head script aswell?
Thanks let me know!
1 Like
thank god u cant even imagine the troll trying to fool around on my server putting there handsup while cuffed lol
1 Like