[RELEASE] Simple car shooting recoil

A very simple car recoil script that changes gun “kick” based on car speeds in MPH
You can fine-tune it to fit your own server needs!

Features :

  • Different amounts of recoil based off-speed (MPH)
  • Customizable speeds/recoil
  • Edit for KMH only old version
    So you’d have to change the current_mph to something like this
    local current_mph =math.floor(speed * 3.6 + 0.5)
    You can change the current_mph to current_kmh just update everything respectively!

Video Example - Video Demo
Pictures of performance

Car_Recoil.rar (934 Bytes) - old

Car_Recoil.zip FINAL(1.3 KB) - new

  • I Sorta optimized it to where when outside a car it’s pretty much 0ms/% Sadly once you enter since you want to apply the recoil every time the player shoots it will go to .03ms and 4.80/5.~ % 4.80 You could change the Citizen.Wait to something else to lower the cost up to you.
    After this three-year update, I will no longer be supporting/updating you’re free to use change and do whatever you want with this. - 9/17/2024
5 Likes

does this script make your cars body go back when you go faster?

No, this is just how much your screen shakes while shooting.
I’ll edit the post up a bit since it may have been misleading with what I put :grinning_face_with_smiling_eyes:

ah ok cool script i just tried it

1 Like

Cool Script

I would suggest updating __resource.lua to fxmanifest.lua since it’s deprecated.

Really cool. I just tried an is very good.

Can you show us a preview please

Great Script Man! :smiley:

Updated! :grinning_face_with_smiling_eyes:

Quick question ! :slight_smile:
If we use kmh in our server do i simply change mph to kmh or will it make the conversion automatically?

So you’d have to change the current_mph to something like this
local current_mph =math.floor(speed * 3.6 + 0.5)
You can change the current_mph to current_kmh just update everything respectivly! :grinning_face_with_smiling_eyes:
@TheGrumpyFox

1 Like

Thank you ! :heart: i will try that :smiley:

Worked like a charm! thank you again :smiley:

im usging first person, and then i sit in car it moves straight to firs person and script not wokrs.

I’m sorry, is the recoil not working in first person, or is it moving you out of first person?

Basically it’s doesn’t matter how fast I drive , or how slow the view then I start to shoot turns to first person( because my server made like this) scirpts starts fully no errors , bus it’s not do any function at all :slight_smile: so the answer is it’s not working on first person

1 Like

ill look into it today and send a update shortly after

1 Like

was first person view ever fixed?