This script sets the character's animation to "ragdoll" when he gets hit by gunshots. You can fully customize the functionality of the script and choose the best settings for you.
Requirements: ScriptHookV; ScriptHookV DotNet.
Installation: Copy the files (InjuredRagdoll.dll and InjuredRagdoll.ini) to the Grand Theft Auto V/scripts folder.