Is there any scripts that disable vehicle damage like when getting ran over? I own a combat server and VDM is a big issue.
You could do something like this.
CreateThread(function()
while true do
if HasEntityCollidedWithAnything(GetVehiclePedIsIn(GetPlayerPed(-1), true)) then
DeleteVehicle(GetVehiclePedIsIn(GetPlayerPed(-1), true))
end
Wait(0)
end
end)
1 Like
for those of us who are lazy and dont want to try and read the stupid secret hidden native stuff people pull here you go for the supified version of things.
Citizen.CreateThread(function()
while true do
SetWeaponDamageModifier(-1553120962, 0.0)
Wait(0)
end
end)
this dont work