A standalone hands up script that uses TaskHandsUp
compared to the generic TaskPlayAnim
versions of the script.
There are also state bags used so you can check if a player is holding their hands up in other resources, for example when a player is required to surrender.
From the client side:
CreateThread(function()
if LocalPlayer.state.handsup then
-- Do something, as the player has their hands up
else
-- If you want to do something as the player doesn't have their hands up do it here
end
From the server side:
CreateThread(function() -- Shouldn't really be running this in a thread from the server side unless you change how source is received as it is currently nil this is just for example
if Player(source).state.handsup then
-- Do something as the player has their hands up
else
-- If you want to do something as the player does not have their hands up do it here
end
end
1. If you have a hands up script already, remove it from your server to prevent interference with this new system.
2. From there, you can download this repository and simply drag it into your server files, not a complicated installation at all.
3. Head over to your server.cfg
and make sure you add ensure alv_handsup
somewhere within your config.
4. Once you have completed those steps, the script is ready to be used simply restart your server and you are good to go!
If you are looking for a Developer with over 3 years of experience on FiveM, feel free to join my Discord Server or my Website!