[Release] Anti-VDM

This is barely a release more like 5 lines of code but I feel like a lot of RP servers would actually benefit from this. Just makes running people over with your vehicle do 0 damage.

Citizen.CreateThread(function()
    while true do
        N_0x4757f00bc6323cfe(-1553120962, 0.0) 
        Wait(0)
    end
end)

Thanks to Smallo for the vehicle hash
Thanks to Bade for the undocumented native
Thanks to dyspromium for the weapon damage modifier idea

:v:

9 Likes

how did i use it?

Make a resource and put the code in your client script

So, is 0.0 amount of damage or a coefficient?
Let’s say, I want cars to damage people for some amount, but not kill them stright away.

Its the damage multiplier, (0.0-1.0). So if you want to half the damage done by vehicles replace 0.0 with 0.5

Thank you good sir. Wonderful release, time to nerf rammers.

2 Likes

Not a release. Lacks quality. I’ll move this to #development:scripts instead

  1. No download file
  2. Only 5 lines

no problem, wasn’t sure where to put it.

1 Like

This is good release mate doesnt mater how much lines code need. Thx for sharing.

1 Like

how to add it inside a specific zone for example like a safezone?

For that you should have a look at this : STANDALONE | Redzone and Greenzone script with speed limiter for FiveM! - #25 by TheApexWolf

nice one