BetterRecoil - Better 3rd Person Recoil for FiveM!

Don’t you just hate no-recoil cheats?

I sure do, and i also hate guns not having any difficulty in them, so i quickly wrote BetterRecoil to fix that issue, each gun has its own recoil value, sadly, it doesn’t support patterns as that would be an annoying and tedious process, but this is fine for now, here are a few examples:


Assault Rifle

image
SMG Mk2

image
Assault Shotgun


Combat MG Mk2
( due to high firerate the recoil is quite heavy )

image
Pistol .50

each recoil value can be adjusted freely.

although the way i add the recoil is a bit bad, it works just fine, anyone wanting to improve it is free to do so, just don’t re-release it without my permission.

Download
Have Fun!

30 Likes

i love your releases man! :heart:

edit: i would love him he wasn’t a furry, his releases are cool tho :^), jk love ya anyway @Bluethefurry

9 Likes

>only loving the releases
>not the guy himself
what kind of lover are you

6 Likes

The mod is already called 3rd Person Recoil, but please allow me the question:
Does it also effect 1st Person Shooting?
Because on our Server we have the aimdot disabled, so most People are Shooting in 1st peson.

1 Like

no it does not, due to issues with first person recoil being about 6x as high as if it were third person i disabled it.

1 Like

Thanks for fast answer.
Hmm, as we basically only Need it for first Person, could you tell me what i have to Change, so its working?

I guess you disabled it for 1st Person with this line:
if GetFollowPedCamViewMode() ~= 4 then
? Is firstperson viewmode 4?

And if i then lower all the values by 6x less, it could work?

1 Like

i honestly don’t know, the natives to set the screen yaw are weird and picky, you could try but i would not recommend it

and yes, first person is viewmode 4

1 Like

Ok perfect, thanks for helping out :slight_smile: I will give it a try. would love recoil in 1st Person.

1 Like

Another Great Release.

2 Likes

Nice release! Sucks it doesn’t work in first person, but good job nonetheless

2 Likes

Hey, So I’ve tried to install this script on my server. But I’ll keep getting the error Can’t load resource BetterRecoil.
Any way to fix it? @Blumlaut

got any logs? make sure you arent uploading it into betterrecoil/betterrecoil or so.

There is nothing showing up that’s wrong about the BetterRecoil.

can you give me your server ip real quick? i’ll check it myself.

Okey I’ll send it in PM

i modded your script for my server… i was able to get more or less the same recoil for third and first person…

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		if IsPedShooting(PlayerPedId()) and not IsPedDoingDriveby(PlayerPedId()) then
			local _,wep = GetCurrentPedWeapon(PlayerPedId())
			_,cAmmo = GetAmmoInClip(PlayerPedId(), wep)
			if recoils[wep] and recoils[wep] ~= 0 then
				tv = 0
				if GetFollowPedCamViewMode() ~= 4 then
					repeat 
						Wait(0)
						SetWeaponAnimationOverride(PlayerPedId(), GetHashKey("Default"))
						p = GetGameplayCamRelativePitch()
						SetGameplayCamRelativePitch(p+0.1, 0.2)
						tv = tv+0.1
					until tv >= recoils[wep]
				else
					repeat 
						Wait(0)
						SetWeaponAnimationOverride(PlayerPedId(), GetHashKey("FirstPersonAiming"))
						p = GetGameplayCamRelativePitch()
						if recoils[wep] > 0.1 then
							SetGameplayCamRelativePitch(p+0.6, 1.2)
							tv = tv+0.6
						else
							SetGameplayCamRelativePitch(p+0.016, 0.333)
							tv = tv+0.1
						end
					until tv >= recoils[wep]
				end
			end
		end
	end
end)

since there was a difference if aiming with pistol instead of other i had to add a little if else…
i added too an override for the animation since in my server we wanted to force people to aim with the weapon fisical reticle… XD

Neat! Mind PR-ing it? ( without the animation changes of course :wink: )

PR-ing? sorry not used to all the slangs yet

to remove the animation changes… you only need to remove the 2 lines with “SetWeaponAnimationOverride” natives…

goint to pull request it :slight_smile:

Make a pullrequest over at https://github.com/Bluethefurry/BetterRecoil so everyone can have these changes :slight_smile: