Changing Damage Taken by vehicles

Im trying to make it so that vehicles take more damage when crashed but i cant seem to get it working i have attached my code below

Citizen.CreateThread(function()
	while true do
	
		Citizen.Wait(1)
		if(IsPedInAnyVehicle(GetPlayerPed(-1), false))then
			SetPlayerVehicleDamageModifier(PlayerId(), 1.0)
		end		
	end
end)